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 567 by douglas, 2005-08-28T22:42:38-07:00 vs.
Revision 584 by douglas, 2005-11-22T18:14:57-08:00

# Line 4 | Line 4
4   //
5   // Add User
6  
7 + #define _BSD_SOURCE
8 +
9   #include <errno.h>
10   #include <sys/resource.h>
11   #include <sys/time.h>
12   #include <sys/types.h>
13   #include <sys/stat.h>
14   #include <fcntl.h>
15 +
16 + #ifdef _Zweihander_
17   #include <fts.h>
18 + #endif
19  
20   #include "common.h"
21  
# Line 113 | Line 118 | int main(int argc, char *argv[])
118                  check(setenv("USER", user, 1), environment);
119                  check(setenv("NAME", name, 1), environment);
120                  check(setenv("FILE", slappasswd, 1), environment);
121 +                setshells(shells + bash, environment);
122                  check(execl("/ccs/bin/adduser.sh", argv[0], NULL), environment);
123          }
124  
# Line 143 | Line 149 | int main(int argc, char *argv[])
149          check(chown(entry->pw_dir, entry->pw_uid, entry->pw_gid), environment);
150          check(chdir(entry->pw_dir), environment);
151  
152 <        FTS *traversal = fts_open((char *[]){ "/usr/share/skel", NULL }, FTS_LOGICAL | FTS_NOCHDIR, NULL);
152 >        FTS *traversal = fts_open((char *[]){ "/usr/share/skel", "/ccs/skel", NULL }, FTS_LOGICAL | FTS_NOCHDIR, NULL);
153  
154          if (!traversal)
155                  longjmp(environment, 1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines