mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
- (dtucker) [openbsd-compat/getcwd.c] Replace lstat with fstat to match up
with OpenBSD code since we don't support platforms without fstat any more.
This commit is contained in:
parent
31ba53e333
commit
0a149d19d3
@ -30,6 +30,8 @@
|
|||||||
- (dtucker) [openbsd-compat/glob.c] Update from OpenBSD 1.22 -> 1.25.
|
- (dtucker) [openbsd-compat/glob.c] Update from OpenBSD 1.22 -> 1.25.
|
||||||
- (dtucker) [openbsd-compat/glob.h] Update from OpenBSD 1.8 -> 1.9.
|
- (dtucker) [openbsd-compat/glob.h] Update from OpenBSD 1.8 -> 1.9.
|
||||||
- (dtucker) [openbsd-compat/getcwd.c] Update from OpenBSD 1.9 -> 1.14.
|
- (dtucker) [openbsd-compat/getcwd.c] Update from OpenBSD 1.9 -> 1.14.
|
||||||
|
- (dtucker) [openbsd-compat/getcwd.c] Replace lstat with fstat to match up
|
||||||
|
with OpenBSD code since we don't support platforms without fstat any more.
|
||||||
|
|
||||||
20051105
|
20051105
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
@ -3272,4 +3274,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3973 2005/11/10 06:11:29 dtucker Exp $
|
$Id: ChangeLog,v 1.3974 2005/11/10 06:15:06 dtucker Exp $
|
||||||
|
@ -144,10 +144,8 @@ getcwd(char *pt, size_t size)
|
|||||||
*bup++ = '.';
|
*bup++ = '.';
|
||||||
*bup = '\0';
|
*bup = '\0';
|
||||||
|
|
||||||
/* Open and stat parent directory.
|
/* Open and stat parent directory. */
|
||||||
* RACE?? - replaced fstat(dirfd(dir), &s) w/ lstat(up,&s)
|
if (!(dir = opendir(up)) || fstat(dirfd(dir), &s))
|
||||||
*/
|
|
||||||
if (!(dir = opendir(up)) || lstat(up,&s))
|
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
/* Add trailing slash for next directory. */
|
/* Add trailing slash for next directory. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user