From danm@prime.gushi.org  Fri Sep 29 22:15:37 2006
Return-Path: <danm@prime.gushi.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 287E916A492
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Sep 2006 22:15:37 +0000 (UTC)
	(envelope-from danm@prime.gushi.org)
Received: from prime.gushi.org (prime.gushi.org [72.9.101.130])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 86B6B43D8C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Sep 2006 22:14:48 +0000 (GMT)
	(envelope-from danm@prime.gushi.org)
Received: from prime.gushi.org (localhost [127.0.0.1])
	by prime.gushi.org (8.13.6/8.13.6) with ESMTP id k8TMF20A091353
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Sep 2006 18:15:02 -0400 (EDT)
	(envelope-from danm@prime.gushi.org)
Received: (from danm@localhost)
	by prime.gushi.org (8.13.6/8.13.6/Submit) id k8TMF1JB091352;
	Fri, 29 Sep 2006 18:15:01 -0400 (EDT)
	(envelope-from danm)
Message-Id: <200609292215.k8TMF1JB091352@prime.gushi.org>
Date: Fri, 29 Sep 2006 18:15:01 -0400 (EDT)
From: Dan Mahoney <danm@prime.gushi.org>
Reply-To: User & <danm@prime.gushi.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pw/adduser manpage make no mention of "dot.file" replace syntax in /usr/share/skel
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         103828
>Category:       docs
>Synopsis:       pw/adduser manpage make no mention of "dot.file" replace syntax in /usr/share/skel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 29 22:20:18 GMT 2006
>Closed-Date:    Fri Nov 03 08:44:37 GMT 2006
>Last-Modified:  Fri Nov  3 08:50:19 GMT 2006
>Originator:     Dan Mahoney (danm@prime.gushi.org)
>Release:        FreeBSD 6.1-RELEASE-p3 i386
>Organization:
Gushi Systems
>Environment:
System: FreeBSD prime.gushi.org 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sat Aug 12 16:12:54 EDT 2006 danm@newprime.gushi.org:/usr/obj/usr/src/sys/GENERIC i386

Standard FreeBSD 6.1 release system, any hardware.


>Description:

The "adduser" command calls the "pw" command.  Both these commands by default populate a user's directory from a "skeleton" 
directiory, by default /usr/share/skel.  However, a substitution is present whereby "dotfiles" such as .cshrc can be placed 
in /usr/share/skel as dot.cshrc.  When pw populates the directory, it strips the "dot" from the file name and makes it the 
file's true name, i.e. dot.cshrc --> .cshrc.

>How-To-Repeat:

man pw

man adduser

ls /usr/share/skel

(scratch head about dot.cshrc syntax)

>Fix:

Two problems exist.

One, that this behavior is not documented.  Documentation is as easy as sticking the paragraph above into the relevant 
manpages (pw/adduser).

The second, is that the behavior is undefined if /usr/share/skel contains BOTH a .cshrc and a dot.cshrc (as I can't make 
sense of C, someone else might need to help on this end.)  The fix would be to document this as well.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: trhodes 
State-Changed-When: Mon Oct 9 17:57:55 UTC 2006 
State-Changed-Why:  
The adduser(8) manual page does mention the files, but I 
added a better description regarding the naming convention 
of these files to pw.8.  Switch this to me, MFC reminder. 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Oct 9 17:57:55 UTC 2006 
Responsible-Changed-Why:  
The adduser(8) manual page does mention the files, but I 
added a better description regarding the naming convention 
of these files to pw.8.  Switch this to me, MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103828 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/103828: commit references a PR
Date: Mon,  9 Oct 2006 17:58:40 +0000 (UTC)

 trhodes     2006-10-09 17:57:40 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/pw          pw.8 
   Log:
   Note the naming convention of files in share/skel and explain the "dot"
   prefix is removed.
   
   PR:     103828
   
   Revision  Changes    Path
   1.38      +8 -0      src/usr.sbin/pw/pw.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: trhodes 
State-Changed-When: Fri Nov 3 08:44:16 UTC 2006 
State-Changed-Why:  
Changes have been merged, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103828 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/103828: commit references a PR
Date: Fri,  3 Nov 2006 08:43:50 +0000 (UTC)

 trhodes     2006-11-03 08:43:37 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.sbin/pw          pw.8 
   Log:
   MFC:
     Note the naming convention of files in share/skel and explain the "dot"
     prefix is removed.
   
     PR:     103828
   
   Approved by:    re (hrs)
   
   Revision  Changes    Path
   1.37.2.1  +9 -1      src/usr.sbin/pw/pw.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
