diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-10 01:25:32 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-10 01:25:32 +0000 |
commit | 7fecc3d5a2fb641237f24a3f39c6556fde648a8a (patch) | |
tree | 5940d6e4eeac18e383b1c67240cfe689b5050e8e /source/utils | |
parent | b92ce41c54fa187bce3287257996f7a3e9c9b9ff (diff) | |
download | samba-7fecc3d5a2fb641237f24a3f39c6556fde648a8a.tar.gz samba-7fecc3d5a2fb641237f24a3f39c6556fde648a8a.tar.xz samba-7fecc3d5a2fb641237f24a3f39c6556fde648a8a.zip |
the rest of the binaries now compile and link
Diffstat (limited to 'source/utils')
-rw-r--r-- | source/utils/status.c | 67 |
1 files changed, 34 insertions, 33 deletions
diff --git a/source/utils/status.c b/source/utils/status.c index 8ece6ed4c1c..225f1712fe0 100644 --- a/source/utils/status.c +++ b/source/utils/status.c @@ -66,6 +66,40 @@ files_struct Files[MAX_OPEN_FILES]; struct current_user current_user; +/* added by OH */ +static void Ucrit_addUsername(char *username) +{ + pstrcpy(Ucrit_username, username); + if(strlen(Ucrit_username) > 0) + Ucrit_IsActive = 1; +} + +static unsigned int Ucrit_checkUsername(char *username) +{ + if ( !Ucrit_IsActive) return 1; + if (strcmp(Ucrit_username,username) ==0) return 1; + return 0; +} + +static void Ucrit_addPid(int pid) +{ + int i; + if ( !Ucrit_IsActive) return; + for (i=0;i<Ucrit_MaxPid;i++) + if( pid == Ucrit_pid[i] ) return; + Ucrit_pid[Ucrit_MaxPid++] = pid; +} + +static unsigned int Ucrit_checkPid(int pid) +{ + int i; + if ( !Ucrit_IsActive) return 1; + for (i=0;i<Ucrit_MaxPid;i++) + if( pid == Ucrit_pid[i] ) return 1; + return 0; +} + + static void print_share_mode(share_mode_entry *e, char *fname) { static int count; @@ -296,36 +330,3 @@ static void print_share_mode(share_mode_entry *e, char *fname) return (0); } -/* added by OH */ -void Ucrit_addUsername(pstring username) -{ - pstrcpy(Ucrit_username, username); - if(strlen(Ucrit_username) > 0) - Ucrit_IsActive = 1; -} - -unsigned int Ucrit_checkUsername(pstring username) -{ - if ( !Ucrit_IsActive) return 1; - if (strcmp(Ucrit_username,username) ==0) return 1; - return 0; -} - -void Ucrit_addPid(int pid) -{ - int i; - if ( !Ucrit_IsActive) return; - for (i=0;i<Ucrit_MaxPid;i++) - if( pid == Ucrit_pid[i] ) return; - Ucrit_pid[Ucrit_MaxPid++] = pid; -} - -unsigned int Ucrit_checkPid(int pid) -{ - int i; - if ( !Ucrit_IsActive) return 1; - for (i=0;i<Ucrit_MaxPid;i++) - if( pid == Ucrit_pid[i] ) return 1; - return 0; -} - |