ubase

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

commit 1abf7518ada8a2b977cac0b97bd47da2aeb2f2d2
parent 01bbe2820af01501a841eecebe15d31bc8f742e9
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat Jun  7 19:35:35 +0200

mount: remove stat, not needed since we use realpath

Diffstat:
mount.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/mount.c b/mount.c @@ -126,7 +126,6 @@ main(int argc, char *argv[]) char *files[] = { "/proc/mounts", "/etc/fstab", NULL }; size_t datasiz = sizeof(data); const char *source, *target; - struct stat st; struct mntent *me = NULL; FILE *fp; @@ -176,8 +175,6 @@ main(int argc, char *argv[]) if(!target) { target = argv[0]; source = NULL; - if(stat(target, &st) < 0) - eprintf("stat %s:", target); if(!(resolvpath = realpath(target, NULL))) eprintf("realpath %s:", target); target = resolvpath;