git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon/Win32: Windows replacement for umask.
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
463e789
..
49a0eab
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-50,7
+50,7
@@
do_mount_vfs (const char *options, const char *vfstype,
ABS_PATH (mountpoint, return -1);
ABS_PATH (mountpoint, return -1);
- is_root =
strcmp (mountpoint, "/") == 0
;
+ is_root =
STREQ (mountpoint, "/")
;
if (!root_mounted && !is_root) {
reply_with_error ("mount: you must mount something on / first");
if (!root_mounted && !is_root) {
reply_with_error ("mount: you must mount something on / first");
@@
-112,7
+112,7
@@
do_umount (const char *pathordevice)
char *buf;
int is_dev;
char *buf;
int is_dev;
- is_dev =
strncmp (pathordevice, "/dev/", 5) == 0
;
+ is_dev =
STREQLEN (pathordevice, "/dev/", 5)
;
buf = is_dev ? strdup (pathordevice)
: sysroot_path (pathordevice);
if (buf == NULL) {
buf = is_dev ? strdup (pathordevice)
: sysroot_path (pathordevice);
if (buf == NULL) {