diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-22 09:10:20 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-22 09:10:20 +0400 |
commit | bccd5e0d8530b8ba4d5388d7de6a86c0267e5be8 (patch) | |
tree | d03d4a3a1413b7651456f9dd4f97d1c70e5276ae /winsup/cygwin/security.cc | |
parent | 19b48cd9822ffec2ddfb16f2e49df23f95b9e05c (diff) |
* winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files
only in sources which require them.
* Makefile.in: Generate dependencies with -MD option.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 6766007d4..a8d578043 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -22,9 +22,13 @@ details. */ #include <sys/stat.h> #include <sys/acl.h> #include <ctype.h> +#include "cygerrno.h" +#include "fhandler.h" +#include "path.h" #include "dtable.h" +#include "sync.h" +#include "sigproc.h" #include "pinfo.h" -#include "cygerrno.h" extern BOOL allow_ntea; BOOL allow_ntsec = FALSE; @@ -51,11 +55,11 @@ convert_sid_to_string_sid (PSID psid, char *sid_str) if (!psid || !sid_str) return NULL; strcpy (sid_str, "S-1-"); - sprintf(t, "%u", GetSidIdentifierAuthority (psid)->Value[5]); + __small_sprintf(t, "%u", GetSidIdentifierAuthority (psid)->Value[5]); strcat (sid_str, t); for (i = 0; i < *GetSidSubAuthorityCount (psid); ++i) { - sprintf(t, "-%lu", *GetSidSubAuthority (psid, i)); + __small_sprintf(t, "-%lu", *GetSidSubAuthority (psid, i)); strcat (sid_str, t); } return sid_str; @@ -2005,27 +2009,27 @@ acltotext (aclent_t *aclbufp, int aclcnt) switch (aclbufp[pos].a_type) { case USER_OBJ: - sprintf (buf + strlen (buf), "user::%s", + __small_sprintf (buf + strlen (buf), "user::%s", permtostr (aclbufp[pos].a_perm)); break; case USER: - sprintf (buf + strlen (buf), "user:%d:%s", + __small_sprintf (buf + strlen (buf), "user:%d:%s", aclbufp[pos].a_id, permtostr (aclbufp[pos].a_perm)); break; case GROUP_OBJ: - sprintf (buf + strlen (buf), "group::%s", + __small_sprintf (buf + strlen (buf), "group::%s", permtostr (aclbufp[pos].a_perm)); break; case GROUP: - sprintf (buf + strlen (buf), "group:%d:%s", + __small_sprintf (buf + strlen (buf), "group:%d:%s", aclbufp[pos].a_id, permtostr (aclbufp[pos].a_perm)); break; case CLASS_OBJ: - sprintf (buf + strlen (buf), "mask::%s", + __small_sprintf (buf + strlen (buf), "mask::%s", permtostr (aclbufp[pos].a_perm)); break; case OTHER_OBJ: - sprintf (buf + strlen (buf), "other::%s", + __small_sprintf (buf + strlen (buf), "other::%s", permtostr (aclbufp[pos].a_perm)); break; default: |