Print this page
7648 useradd/mod commands operate on /home special filesystem

@@ -46,12 +46,10 @@
 #include "funcs.h"
 #include "messages.h"
 
 #define SBUFSZ  256
 
-#define DEFAULT_USERADD "/etc/default/useradd"
-
 static int rm_homedir();
 static char *get_mnt_special();
 
 static char cmdbuf[ SBUFSZ ];   /* buffer for system call */
 static char dhome[ PATH_MAX + 1 ]; /* buffer for dirname */

@@ -59,19 +57,19 @@
 static char pdir[ PATH_MAX + 1 ]; /* parent directory */
 static libzfs_handle_t *g_zfs = NULL;
 
 /*
  * Create a home directory and populate with files from skeleton
- * directory.
+ * directory, where:
+ *      homedir - home directory to create,
+ *      skeldir - skel directory to copy if indicated,
+ *      uid - uid of new user,
+ *      gid - group id of new user.
+ *      flags - miscellaneous flags.
  */
 int
 create_home(char *homedir, char *skeldir, uid_t uid, gid_t gid, int flags)
-                /* home directory to create */
-                /* skel directory to copy if indicated */
-                /* uid of new user */
-                /* group id of new user */
-                /* miscellaneous flags */
 {
         struct stat stbuf;
         char *dataset;
         char *dname, *bname, *rp;
         int created_fs = 0;