ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 1c4f10e69059ae17049dc66b035a546e1cea5142
parent ac08f70d90893efda02429bf7a4703848479f210
Author: Eivind Uggedal <eivind@uggedal.com>
Date:   Tue Mar 15 16:03:14 +0000

dd: remove if= noatime optimization

Diffstat:
dd.c | 6------
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/dd.c b/dd.c @@ -43,7 +43,6 @@ prepare_copy(struct dd_config *ddc, int *ifd, int *ofd) { struct stat st; int fli = O_RDONLY|O_LARGEFILE|O_NOCTTY, flo = O_WRONLY|O_LARGEFILE|O_CREAT|O_NOATIME|O_NOCTTY; - uid_t euid = 0; long pagesize; if (ddc->direct) { @@ -51,11 +50,6 @@ prepare_copy(struct dd_config *ddc, int *ifd, int *ofd) flo |= O_DIRECT; } - euid = geteuid(); - - if (!euid || st.st_uid == euid) - fli |= O_NOATIME; - if (!ddc->in) *ifd = 0; else if ((*ifd = open(ddc->in, fli)) < 0) return -1;