Print this page
293 useradd/del/mod should be ZFS-aware

*** 27,38 **** /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #include <stdio.h> #include <userdefs.h> #include "messages.h" #include <unistd.h> --- 27,36 ----
*** 47,60 **** /* * Move directory contents from one place to another */ int ! move_dir(char *from, char *to, char *login) /* directory to move files from */ /* dirctory to move files to */ /* login id of owner */ { size_t len = 0; int rc = EX_SUCCESS; struct stat statbuf; struct utimbuf times; --- 45,59 ---- /* * Move directory contents from one place to another */ int ! move_dir(char *from, char *to, char *login, int flags) /* directory to move files from */ /* dirctory to move files to */ /* login id of owner */ + /* miscellaneous flags */ { size_t len = 0; int rc = EX_SUCCESS; struct stat statbuf; struct utimbuf times;
*** 90,100 **** (void) utime(to, &times); } /* Remove the files in the old place */ ! rc = rm_files(from, login); } return (rc); } --- 89,99 ---- (void) utime(to, &times); } /* Remove the files in the old place */ ! rc = rm_files(from, login, flags); } return (rc); }