Introduction
Introduction Statistics Contact Development Disclaimer Help
dd: remove if= noatime optimization - ubase - suckless linux base utils
git clone git://git.suckless.org/ubase
Log
Files
Refs
README
LICENSE
---
commit e5d88b0f30feb2f0374c2e09ecd2685ba1f4e717
parent 05a69d9d0decf9e8d5037bd8d20bb20c235b2017
Author: Eivind Uggedal <[email protected]>
Date: Tue, 15 Mar 2016 16:03:14 +0000
dd: remove if= noatime optimization
Diffstat:
M 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_…
- 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;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.