Advertisement
Guest User

gelim

a guest
Nov 21st, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. $ strace rm test1
  2. [...]
  3. open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
  4. fstat(3, {st_mode=S_IFREG|0644, st_size=5787152, ...}) = 0
  5. mmap(NULL, 5787152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fe6f0ff3000
  6. close(3) = 0
  7. ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
  8. newfstatat(AT_FDCWD, "test1", {st_mode=S_IFREG|0664, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
  9. geteuid() = 1000
  10. newfstatat(AT_FDCWD, "test1", {st_mode=S_IFREG|0664, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0
  11. faccessat(AT_FDCWD, "test1", W_OK) = 0
  12. unlinkat(AT_FDCWD, "test1", 0) = 0
  13. lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
  14. close(0) = 0
  15. close(1) = 0
  16. close(2) = 0
  17. exit_group(0) = ?
  18.  
  19. $ strace unlink test2
  20. [...]
  21. open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
  22. fstat(3, {st_mode=S_IFREG|0644, st_size=5787152, ...}) = 0
  23. mmap(NULL, 5787152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ffac1dd8000
  24. close(3) = 0
  25. unlink("test2") = 0
  26. close(1) = 0
  27. close(2) = 0
  28. exit_group(0) = ?
  29. +++ exited with 0 +++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement