bugmonotone - Bugs: bug #18886, Crash if mtn genkey fails to save...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18886: Crash if mtn genkey fails to save a key because of improper file system rights

Submitted by:  Thomas Keller <tommyd>
Submitted on:  Fri 26 Jan 2007 09:50:26 AM UTC  
 
Category: command line UISeverity: 2 - Minor
Item Group: crashStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

mtn 0.31

Thu 29 Apr 2010 05:01:43 PM UTC, comment #1:

mtn 0.31:

$ mv /home/zbigg/.monotone/ /home/zbigg/.monotoneX
$ chmod -w ~
$ ./mtn-0.31-linux-x86 genkey spam
mtn-0.31-linux-x86: generating key-pair 'spam'
enter passphrase for key ID [spam]:
confirm passphrase for key ID [spam]:
mtn-0.31-linux-x86: storing key-pair 'spam' in /home/zbigg/.monotone/keys/
mtn-0.31-linux-x86: fatal: boost::filesystem::filesystem_error: boost::filesystem::create_directory: "/home/zbigg/.monotone": Permission denied
mtn-0.31-linux-x86: this is almost certainly a bug in monotone.
mtn-0.31-linux-x86: please send this error message, the output of 'mtn-0.31-linux-x86 --full-version',
mtn-0.31-linux-x86: and a description of what you were doing to monotone-devel@nongnu.org.
mtn-0.31-linux-x86: failed to write debugging log to /home/zbigg/.monotone/dump

mtn 0.47:

|i686| zbigg@home:/home/zbigg/projects/monotone/0.31
$ mtn genkey spam
enter passphrase for key ID [spam] (...):
confirm passphrase for key ID [spam] (...):
mtn: generating key-pair 'spam'
mtn: storing key-pair 'spam' in /home/zbigg/.monotone/keys/
mtn: error: could not create directory '/home/zbigg/.monotone': Permission denied

Zbigniew Zagórski <zzagorski>
Project Member
Fri 26 Jan 2007 09:50:26 AM UTC, original submission:

$ mtn genkey -unavailable-
mtn: generating key-pair 'guitone@thomaskeller.biz'
enter passphrase for key ID [guitone@thomaskeller.biz]:
confirm passphrase for key ID [guitone@thomaskeller.biz]:
mtn: storing key-pair 'guitone@thomaskeller.biz' in /path/to/.monotone/keys/
mtn: fatal: boost::filesystem::filesystem_error: boost::filesystem::create_directory: "/path/to/.monotone": Keine Berechtigung
mtn: this is almost certainly a bug in monotone.
mtn: please send this error message, the output of 'mtn --full-version',
mtn: and a description of what you were doing to monotone-devel@nongnu.org.
mtn: failed to write debugging log to /path/to/.monotone/dump

Sure, one should have read/write rights in one's own home directory, but hey, this could be said nicer... =)

Thomas Keller <tommyd>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by zzagorski (Updated the item)
  • -unavailable- added by tommyd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 29 Apr 2010 05:01:43 PM UTCzzagorskiStatusNone=>Fixed
      Open/ClosedAccepted=>Closed
    Thu 29 Apr 2010 04:59:52 PM UTCzzagorskiSeverity3 - Normal=>2 - Minor
      Open/ClosedOpen=>Accepted

    Back to the top


    Powered by Savane 3.1-cleanup1