home *** CD-ROM | disk | FTP | other *** search
- From: csu@alembic.acs.com (Dave Mack)
- Newsgroups: comp.lang.perl,alt.sources
- Subject: Patch 1 for chfn in Perl
- Message-ID: <1990May14.001123.20701@alembic.acs.com>
- Date: 14 May 90 00:11:23 GMT
-
- Dumb! Got my chmods confused with my umasks. Please apply this
- patch to the Perl version of chfn I posted earlier.
-
- *** chfn~ Sun May 13 15:00:22 1990
- --- chfn Sun May 13 17:30:34 1990
- ***************
- *** 15,21 ****
-
- die "Usage: chfn new-full-name\n" if ( $#ARGV != 0 );
-
- ! umask(0600); # Don't want folks messing with the tmp file
-
- open(PW,"</etc/passwd") || die "Can\'t open /etc/passwd: $!\n";
-
- --- 15,21 ----
-
- die "Usage: chfn new-full-name\n" if ( $#ARGV != 0 );
-
- ! umask(0077); # Don't want folks messing with the tmp file
-
- open(PW,"</etc/passwd") || die "Can\'t open /etc/passwd: $!\n";
-
-