Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ strace rm test1
- [...]
- open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
- fstat(3, {st_mode=S_IFREG|0644, st_size=5787152, ...}) = 0
- mmap(NULL, 5787152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe6f0ff3000
- close(3) = 0
- ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
- newfstatat(AT_FDCWD, "test1", {st_mode=S_IFREG|0664, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
- geteuid() = 1000
- newfstatat(AT_FDCWD, "test1", {st_mode=S_IFREG|0664, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
- faccessat(AT_FDCWD, "test1", W_OK) = 0
- unlinkat(AT_FDCWD, "test1", 0) = 0
- lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
- close(0) = 0
- close(1) = 0
- close(2) = 0
- exit_group(0) = ?
- $ strace unlink test2
- [...]
- open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
- fstat(3, {st_mode=S_IFREG|0644, st_size=5787152, ...}) = 0
- mmap(NULL, 5787152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ffac1dd8000
- close(3) = 0
- unlink("test2") = 0
- close(1) = 0
- close(2) = 0
- exit_group(0) = ?
- +++ exited with 0 +++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement