Bugzilla – Attachment 2505 Details for
Bug 2314
ls -l a_symlink does not list the link permissions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
don't override lstat in glob2 for GLOB_MARK processing
file_2314.txt (text/plain), 974 bytes, created by
Kirk Wolf
on 2014-11-15 01:23:27 AEDT
(
hide
)
Description:
don't override lstat in glob2 for GLOB_MARK processing
Filename:
MIME Type:
Creator:
Kirk Wolf
Created:
2014-11-15 01:23:27 AEDT
Size:
974 bytes
patch
obsolete
>Index: openbsd-compat/glob.c >=================================================================== >RCS file: /cvs/openssh/openbsd-compat/glob.c,v >retrieving revision 1.32 >diff -u -r1.32 glob.c >--- openbsd-compat/glob.c 22 Sep 2011 11:22:23 -0000 1.32 >+++ openbsd-compat/glob.c 14 Nov 2014 14:20:47 -0000 >@@ -627,7 +627,7 @@ > glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, > Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp) > { >- struct stat sb; >+ struct stat sb, sb_tmp; > Char *p, *q; > int anymeta; > >@@ -652,8 +652,8 @@ > if (((pglob->gl_flags & GLOB_MARK) && > pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) || > (S_ISLNK(sb.st_mode) && >- (g_stat(pathbuf, &sb, pglob) == 0) && >- S_ISDIR(sb.st_mode)))) { >+ (g_stat(pathbuf, &sb_tmp, pglob) == 0) && >+ S_ISDIR(sb_tmp.st_mode)))) { > if (pathend+1 > pathend_last) > return (1); > *pathend++ = SEP;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2314
: 2505