chiark / gitweb /
volume_id: make FAT32 recognition more robust
[elogind.git] / libsysfs / sysfs_utils.c
index 210c2a086d022b83f416a0106023dcb795600f4b..bd7f99ae15d6c0417f492e7e72ef981bf8de3af3 100644 (file)
@@ -3,7 +3,7 @@
  *
  * System utility functions for libsysfs
  *
- * Copyright (C) IBM Corp. 2003
+ * Copyright (C) IBM Corp. 2003-2005
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Lesser General Public
@@ -233,7 +233,7 @@ int sysfs_path_is_dir(const char *path)
                errno = EINVAL;
                return 1;
        }
-       if ((lstat(path, &astats)) != 0) {
+       if ((stat(path, &astats)) != 0) {
                dprintf("stat() failed\n");
                return 1;
        }