Changeset 2225 in MondoRescue for branches/2.2.9
- Timestamp:
- Jun 17, 2009, 4:47:09 AM (15 years ago)
- Location:
- branches/2.2.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo-doc/mondoarchive.8
r2224 r2225 125 125 If your NFS server only accept write from a backup user, you may specify it with the syntax: 126 126 .B user@machine:/mount/path 127 and mondoarchive will try to do its best to support it using sudo.127 and mondoarchive will try to do its best to support it. 128 128 129 129 .TP -
branches/2.2.9/mondo/src/common/libmondo-cli.c
r2224 r2225 1241 1241 mr_asprintf(&tmp1,"%s/%s/.dummy.txt", bkpinfo->isodir,bkpinfo->nfs_remote_dir); 1242 1242 if (bkpinfo->nfs_user) { 1243 sprintf(tmp, "su do -u %s echo hi > %s", bkpinfo->nfs_user, tmp1);1243 sprintf(tmp, "su - %s -c \"echo hi > %s\"", bkpinfo->nfs_user, tmp1); 1244 1244 } else { 1245 1245 sprintf(tmp, "echo hi > %s", tmp1); -
branches/2.2.9/mondo/src/common/libmondo-fork.c
r2224 r2225 134 134 135 135 if (bkpinfo->nfs_user != NULL) { 136 mr_asprintf(&tmp1, "su do -u %s %s", bkpinfo->nfs_user, basic_call);136 mr_asprintf(&tmp1, "su - %s -c \"%s\"", bkpinfo->nfs_user, basic_call); 137 137 } else { 138 138 mr_asprintf(&tmp1, "%s", basic_call);
Note:
See TracChangeset
for help on using the changeset viewer.