mirror of
https://github.com/mirror/make.git
synced 2024-12-29 14:30:42 +08:00
(find_directory): Use safe_stat in place of stat.
This commit is contained in:
parent
61da194af9
commit
84091971f9
4
dir.c
4
dir.c
@ -1,5 +1,5 @@
|
||||
/* Directory hashing for GNU Make.
|
||||
Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
|
||||
Copyright (C) 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
||||
This file is part of GNU Make.
|
||||
|
||||
GNU Make is free software; you can redistribute it and/or modify
|
||||
@ -136,7 +136,7 @@ find_directory (name)
|
||||
/* The directory is not in the name hash table.
|
||||
Find its device and inode numbers, and look it up by them. */
|
||||
|
||||
if (stat (name, &st) < 0)
|
||||
if (safe_stat (name, &st) < 0)
|
||||
/* Couldn't stat the directory. Mark this by
|
||||
setting the `contents' member to a nil pointer. */
|
||||
dir->contents = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user