rse 8845971810 MFC:
| Fix parsing of mdmfs(8) option "-w <user>:<group>" in case <user> or
| <group> is a numeric user/group ID instead of a user/group name (as
| explicitly intended to be allowed by both the manual page and the
| implementation).
|
| Before this fix, mdmfs(8) aborted:
|
| | # mdmfs -s 32m -w 0:0 md /var/tmp/foo
| | Assertion failed: (mip->mi_have_uid), function extract_ugid, file /usr/src/sbin/mdmfs/mdmfs.c, line 555.
| | Abort trap (core dumped)
|
| The "mi_have_[ug]id" fields were only set in case a name lookup was
| successful. Instead they also have to be set in case the string to
| integer conversion was successful.
|
| Additionally, as a result of this fix, two assertions at the end of
| the function are now always true and hence can be just be removed. It
| is guarrantied that both the UID and the GID are set when the function
| returns regularily, else it would have been already bailed out with
| usage()/exit(3) or errx(3) before.
|
| Spotted by:     Christoph Schug <chris@schug.net>
2005-11-04 19:37:14 +00:00
..
2005-02-13 22:25:33 +00:00
2005-08-19 15:54:42 +00:00
2005-05-02 10:31:27 +00:00
2005-02-13 22:25:33 +00:00
2005-09-20 00:34:54 +00:00
2005-06-14 11:24:56 +00:00
2005-01-18 10:09:38 +00:00
2005-06-14 11:24:56 +00:00
2005-01-17 13:56:46 +00:00
2005-08-07 18:49:50 +00:00
2005-01-18 10:09:38 +00:00
2005-10-05 01:16:39 +00:00
2005-04-08 10:32:22 +00:00
2005-10-09 03:45:28 +00:00
2004-07-28 05:59:22 +00:00
2005-03-11 22:07:04 +00:00
2005-08-04 18:05:33 +00:00
2005-09-06 23:59:01 +00:00
2005-04-14 20:27:30 +00:00
2005-10-08 21:19:15 +00:00
2005-10-04 17:29:00 +00:00
2005-02-13 22:25:33 +00:00
2005-08-31 13:57:37 +00:00
2005-02-09 22:06:16 +00:00
2005-09-09 21:39:47 +00:00
2005-11-04 19:37:14 +00:00
2005-06-24 10:57:53 +00:00
2005-05-02 10:13:38 +00:00
2005-02-13 22:25:33 +00:00
2005-02-13 22:25:33 +00:00
2004-10-24 14:25:53 +00:00
2005-08-19 09:29:25 +00:00
2005-10-09 03:50:30 +00:00
2004-12-30 01:48:12 +00:00
2005-02-13 23:45:54 +00:00
2005-07-17 15:03:36 +00:00
2005-02-13 22:25:33 +00:00
2004-12-21 09:59:45 +00:00