ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSAdmin/turnin.c
(Generate patch)

Comparing CCSAdmin/adduser.c (file contents):
Revision 566 by douglas, 2005-08-28T22:29:20-07:00 vs.
Revision 567 by douglas, 2005-08-28T22:42:38-07:00

# Line 18 | Line 18 | int main(int argc, char *argv[])
18   {
19          if (argc < 1)
20                  return 1;
21 +
22 +        umask(S_IWGRP | S_IWOTH);
23          
24          int exception;
25          jmp_buf environment;
# Line 137 | Line 139 | int main(int argc, char *argv[])
139          if (!entry)
140                  longjmp(environment, 1);
141  
142 <        check(mkdir(entry->pw_dir, 0755), environment);
142 >        check(mkdir(entry->pw_dir, S_IRWXU | S_IRWXG | S_IRWXO), environment);
143          check(chown(entry->pw_dir, entry->pw_uid, entry->pw_gid), environment);
144          check(chdir(entry->pw_dir), environment);
145  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines