git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update all NEED_ROOT uses
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
8cf6874
..
4f60682
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-48,8
+48,6
@@
do_mount_vfs (char *options, char *vfstype,
char *mp;
char *error;
char *mp;
char *error;
- RESOLVE_DEVICE (device, return -1);
-
is_root = strcmp (mountpoint, "/") == 0;
if (!root_mounted && !is_root) {
is_root = strcmp (mountpoint, "/") == 0;
if (!root_mounted && !is_root) {
@@
-319,7
+317,7
@@
do_mount_loop (char *file, char *mountpoint)
char *buf, *mp;
char *error;
char *buf, *mp;
char *error;
- NEED_ROOT (-1);
+ NEED_ROOT (
return
-1);
ABS_PATH (file, return -1);
/* We have to prefix /sysroot on both the filename and the mountpoint. */
ABS_PATH (file, return -1);
/* We have to prefix /sysroot on both the filename and the mountpoint. */
@@
-357,7
+355,7
@@
do_mkmountpoint (char *path)
{
int r;
{
int r;
- /* NEED_ROOT (-1); - we don't want this test for this call. */
+ /* NEED_ROOT (
return
-1); - we don't want this test for this call. */
ABS_PATH (path, return -1);
CHROOT_IN;
ABS_PATH (path, return -1);
CHROOT_IN;
@@
-382,7
+380,7
@@
do_rmmountpoint (char *path)
{
int r;
{
int r;
- NEED_ROOT (-1);
+ NEED_ROOT (
return
-1);
ABS_PATH (path, return -1);
CHROOT_IN;
ABS_PATH (path, return -1);
CHROOT_IN;