[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] bug #20389 - patch
From: |
Marco Oliva |
Subject: |
[Bug-wget] bug #20389 - patch |
Date: |
Sat, 13 Mar 2010 16:27:12 +0000 |
http://savannah.gnu.org/bugs/?20389
--- utils.c.orig 2010-03-04 21:09:31.000000000 +0000
+++ utils.c 2010-03-13 16:09:42.000000000 +0000
@@ -535,12 +535,12 @@
bool
file_exists_p (const char *filename)
{
-#ifdef HAVE_ACCESS
- return access (filename, F_OK) >= 0;
-#else
- struct_stat buf;
- return stat (filename, &buf) >= 0;
-#endif
+ if (true)
+ return access (filename, F_OK) >= 0;
+
+ else
+ struct_stat buf;
+ return stat (filename, &buf) >= 0;
}
/* Returns 0 if PATH is a directory, 1 otherwise (any kind of file).
- [Bug-wget] bug #20389 - patch,
Marco Oliva <=