[Mono-bugs] [Bug 79123][Nor] Changed - UnixUserInfo.ToPasswd fails when fields are blank

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 21 13:31:36 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by samjie at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79123

--- shadow/79123	2006-08-20 20:07:26.000000000 -0400
+++ shadow/79123.tmp.20068	2006-08-21 13:31:36.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 79123
 Product: Mono: Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Mono.POSIX
 AssignedTo: miguel at ximian.com                            
 ReportedBy: samjie at gmail.com               
@@ -46,6 +46,27 @@
 If "fields are blank" were the actual problem, this would produce an
 error; it doesn't.  Using `null' instead of "" also yields no error.
 
 (Glancing at the source doesn't help either, as .ToPasswd() calls
 .CopyPasswd(), which just creates a new Passwd() instance, copies over
 the fields, and returns it.  I can't see any way for this to fail.)
+
+------- Additional Comments From samjie at gmail.com  2006-08-21 13:31 -------
+Wow, thanks for the lightning fast response!
+
+Perhaps the problem is with reading from the system rather than the
+object itself?
+
+This works:
+
+sshd:x:107:65534:x:/var/run/sshd:/bin/false
+
+This doesn't:
+
+sshd:x:107:65534::/var/run/sshd:/bin/false
+
+For the time being I've just stuffed the password file with 'x's but
+that's not going to help me at deployment time.
+
+Where is this code at by the way, I tried to hunt it down last night
+but to no avail.
+


More information about the mono-bugs mailing list