X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fls.c;h=0af2356bb85277c22f2769c475e229cf71272267;hp=9d2ca895771cd0818bdd5cf4570762e590181f61;hb=4df593496e116dfb635731c058b7627e81fc179c;hpb=84fc760439e82e6b3616abd0d1f9bd7d7eb01ec0 diff --git a/daemon/ls.c b/daemon/ls.c index 9d2ca89..0af2356 100644 --- a/daemon/ls.c +++ b/daemon/ls.c @@ -47,7 +47,7 @@ do_ls (const char *path) } while ((d = readdir (dir)) != NULL) { - if (strcmp (d->d_name, ".") == 0 || strcmp (d->d_name, "..") == 0) + if (STREQ (d->d_name, ".") || STREQ (d->d_name, "..")) continue; if (add_string (&r, &size, &alloc, d->d_name) == -1) { @@ -75,9 +75,6 @@ do_ls (const char *path) * necessarily exist in the chroot), this command can be used to escape * from the sysroot (eg. 'll /..'). This command is not meant for * serious use anyway, just for quick interactive sessions. - * - * FIXME: eventually, provide a "debug ll" command that would list files - * in the appliance. */ char *