X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Ffs-util.c;h=b13a9cbea7ca725d27b7b79de02aeaa7f73d3418;hb=69db37b5fbcf6d4d26839860d5e067a45f3f7023;hp=9449e02a3f8130019553042811c6f08b065d3837;hpb=bccdfb431a266e7671d518fd5a42362a5ce724c9;p=elogind.git diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c index 9449e02a3..b13a9cbea 100644 --- a/src/basic/fs-util.c +++ b/src/basic/fs-util.c @@ -43,8 +43,7 @@ int unlink_noerrno(const char *path) { return 0; } -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int rmdir_parents(const char *path, const char *stop) { size_t l; int r = 0; @@ -171,8 +170,7 @@ int readlink_malloc(const char *p, char **ret) { return readlinkat_malloc(AT_FDCWD, p, ret); } -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int readlink_value(const char *p, char **ret) { _cleanup_free_ char *link = NULL; char *value; @@ -277,8 +275,7 @@ int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid) { return 0; } -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int fchmod_and_fchown(int fd, mode_t mode, uid_t uid, gid_t gid) { assert(fd >= 0); @@ -370,8 +367,7 @@ int touch(const char *path) { return touch_file(path, false, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID); } -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int symlink_idempotent(const char *from, const char *to) { _cleanup_free_ char *p = NULL; int r; @@ -479,7 +475,7 @@ int get_files_in_directory(const char *path, char ***list) { errno = 0; de = readdir(d); - if (!de && errno != 0) + if (!de && errno > 0) return -errno; if (!de) break;