git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fish: -i option should fail if / is not mountable, but warn about others.
[libguestfs.git]
/
daemon
/
ls.c
diff --git
a/daemon/ls.c
b/daemon/ls.c
index
3e3183a
..
d0c7b52
100644
(file)
--- a/
daemon/ls.c
+++ b/
daemon/ls.c
@@
-13,7
+13,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139,
USA.
+ * Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*/
#include <config.h>
*/
#include <config.h>
@@
-47,7
+47,7
@@
do_ls (const char *path)
}
while ((d = readdir (dir)) != NULL) {
}
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) {
continue;
if (add_string (&r, &size, &alloc, d->d_name) == -1) {