artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18fa537
)
stat() the original link path not the resolved one which may be relative.
author
nicm
<nicm@openbsd.org>
Sun, 26 Apr 2015 19:53:50 +0000
(19:53 +0000)
committer
nicm
<nicm@openbsd.org>
Sun, 26 Apr 2015 19:53:50 +0000
(19:53 +0000)
usr.bin/file/file.c
patch
|
blob
|
history
diff --git
a/usr.bin/file/file.c
b/usr.bin/file/file.c
index
02f5f24
..
84bedff
100644
(file)
--- a/
usr.bin/file/file.c
+++ b/
usr.bin/file/file.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: file.c,v 1.3
2 2015/04/24 17:34:57
nicm Exp $ */
+/* $OpenBSD: file.c,v 1.3
3 2015/04/26 19:53:50
nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@
-250,7
+250,7
@@
read_link(struct input_file *inf)
if (stat(inf->path, &inf->sb) == -1)
inf->error = strerror(errno);
} else {
- if (stat(inf->
link_
path, &sb) == -1)
+ if (stat(inf->path, &sb) == -1)
inf->link_target = errno;
}
}