Skip to content

Commit

Permalink
mount.ceph: specify full path for /sbin/modprobe
Browse files Browse the repository at this point in the history
Fixes: ceph#1188
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
Sage Weil committed Jun 17, 2011
1 parent f5f563d commit ad5ff23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mount/mount.ceph.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static int parse_arguments(int argc, char *const *const argv,
returns void */
static void modprobe(void) {
int status;
status = system("modprobe ceph");
status = system("/sbin/modprobe ceph");
if (status < 0) {
fprintf(stderr, "mount.ceph: cannot run modprobe: %s\n", strerror(errno));
} else if (WIFEXITED(status)) {
Expand Down

0 comments on commit ad5ff23

Please sign in to comment.