diff options
author | sn199410 <none@none> | 2007-03-19 14:20:27 -0700 |
---|---|---|
committer | sn199410 <none@none> | 2007-03-19 14:20:27 -0700 |
commit | 48011479cce51f5534141868012dcb9828a0fd63 (patch) | |
tree | ca55b26f00ff79591a49fc82391d4d87cf8833ee /usr/src/cmd/truss/systable.c | |
parent | f05faa4ea8df92014407b88058ffeb988a32b6fd (diff) | |
download | illumos-joyent-48011479cce51f5534141868012dcb9828a0fd63.tar.gz |
6296436 /usr/bin/rm has slowed down
6478856 rm(1) fails to delete subdirectories if the current directory is non-readable
6478917 recursive rm operations should be performed via file descriptors
6500134 v_path construction can consume boundless amounts of memory
6501452 *rm* rm can loop forever and delete the wrong files.
Diffstat (limited to 'usr/src/cmd/truss/systable.c')
-rw-r--r-- | usr/src/cmd/truss/systable.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/src/cmd/truss/systable.c b/usr/src/cmd/truss/systable.c index 61ff8cb7dc..a890431275 100644 --- a/usr/src/cmd/truss/systable.c +++ b/usr/src/cmd/truss/systable.c @@ -719,8 +719,9 @@ static const struct systable fsatsystable[] = { {"unlinkat", 4, DEC, NOV, HID, ATC, STG, HEX}, /* 5 */ {"futimesat", 4, DEC, NOV, HID, ATC, STG, HEX}, /* 6 */ {"renameat", 5, DEC, NOV, HID, ATC, STG, DEC, STG}, /* 7 */ -{"openat", 4, DEC, NOV, HID, ATC, STG, OPN}, /* 8 */ -{"openat64", 4, DEC, NOV, HID, ATC, STG, OPN}, /* 9 */ +{"__accessat", 5, DEC, NOV, HID, ATC, STG, ACC}, /* 8 */ +{"openat", 4, DEC, NOV, HID, ATC, STG, OPN}, /* N - 2 */ +{"openat64", 4, DEC, NOV, HID, ATC, STG, OPN}, /* N - 1 */ }; #define NFSATSYSCODE (sizeof (fsatsystable) / sizeof (struct systable)) @@ -944,6 +945,7 @@ const struct sysalias sysalias[] = { { "unlinkat", SYS_fsat }, { "futimesat", SYS_fsat }, { "renameat", SYS_fsat }, + { "__accessat", SYS_fsat }, { "lgrpsys", SYS_lgrpsys }, { "getrusage", SYS_rusagesys }, { "getrusage_chld", SYS_rusagesys }, @@ -1217,13 +1219,13 @@ getsubcode(private_t *pri) if (nsysarg > 3) subcode = (Lsp->pr_sysarg[3] & O_CREAT) ? - 0 : 8; + 0 : NFSATSYSCODE - 2; break; case 1: /* openat64 */ if (nsysarg > 3) subcode = (Lsp->pr_sysarg[3] & O_CREAT) ? - 1 : 9; + 1 : NFSATSYSCODE - 1; break; case 2: case 3: @@ -1231,6 +1233,7 @@ getsubcode(private_t *pri) case 5: case 6: case 7: + case 8: subcode = arg0; } break; |