mount: remove stat, not needed since we use realpath

This commit is contained in:
Hiltjo Posthuma 2014-06-07 19:35:35 +02:00 committed by sin
parent 01bbe2820a
commit 1abf7518ad
1 changed files with 0 additions and 3 deletions

View File

@ -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;