Hi

I have made the necessary changes in
1. usr/src/cmd/oamuser/user/messages.c
2. usr/src/cmd/oamuser/user/messages.h
3. usr/src/cmd/oamuser/user/useradd.c

I am attaching the diff files

PS: Please do update the Request-sponsor table #57 by adding my name
also in it ( http://opensolaris.org/os/bug_reports/request_sponsor/ )

Let me know for further changes.

Fix is tested:

# ./useradd -m -d /export/home/test test
UX: ./useradd: ERROR: /export/home/test is not a directory.


-- 
Thanks & Regards,
Avinash Joshi
Blog: http://avinashtjoshi.wordpress.com/
Site: http://avinashtjoshi.googlepages.com/

On Jan 27, 2008 4:49 PM, Seth Goldberg <Seth.Goldberg at sun.com> wrote:
>
> Quoting Avinash Joshi, who wrote the following on Sun, 27 Jan 2008:
>
> > Hi all.
> >
> > I(OS0142) am working with Surendran (OS0162) on the bug 6323746
> >
> > Bug ID - 6323746
> > Synopsis - useradd -m -d dir will work if [dir] exists and is a file,
> > creating a user with a file as home dir.
> > Category:Subcategory - utility:configuration
> >
> > I am submitting the fix for this bug...
> > Please do review it and let me know.
> >
> > I did a dmake and here is the test for it
> >
> > # touch /export/home/test
> > # ./useradd -m -d /export/home/test test
> > UX: ./useradd: ERROR: /export/home/test is not a full path name.
> > Choose another.
>
>   The error message can be better.  How about:
>
> UX: ./useradd: ERROR: /export/home/test is not a directory
>
>   --S
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 6323746_useradd_messages.c_Fix.txt
URL: 
<http://mail.opensolaris.org/pipermail/request-sponsor/attachments/20080127/6054e59e/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 6323746_useradd_messages.h_Fix.txt
URL: 
<http://mail.opensolaris.org/pipermail/request-sponsor/attachments/20080127/6054e59e/attachment-0001.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 6323746_useradd_useradd.c_Fix.txt
URL: 
<http://mail.opensolaris.org/pipermail/request-sponsor/attachments/20080127/6054e59e/attachment-0002.txt>

Reply via email to