Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147375589
D49624.id152984.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
449 B
Referenced Files
None
Subscribers
None
D49624.id152984.diff
View Options
diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c
--- a/lib/libc/gen/fts.c
+++ b/lib/libc/gen/fts.c
@@ -900,10 +900,12 @@
int saved_errno;
const char *path;
- if (dfd == -1)
- path = p->fts_accpath, dfd = AT_FDCWD;
- else
+ if (dfd == -1) {
+ path = p->fts_accpath;
+ dfd = AT_FDCWD;
+ } else {
path = p->fts_name;
+ }
/* If user needs stat info, stat buffer already allocated. */
sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 11:04 AM (3 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29502703
Default Alt Text
D49624.id152984.diff (449 B)
Attached To
Mode
D49624: fts: Stop abusing the comma operator.
Attached
Detach File
Event Timeline
Log In to Comment