diff options
Diffstat (limited to 'src/mount/mount.ceph.c')
-rwxr-xr-x | src/mount/mount.ceph.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index 37017f16c67..e7a247dfaef 100755 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -298,7 +298,9 @@ static void modprobe(void) { int status; status = system("/sbin/modprobe ceph"); if (status < 0) { - fprintf(stderr, "mount.ceph: cannot run modprobe: %s\n", strerror(errno)); + char error_buf[80]; + fprintf(stderr, "mount.ceph: cannot run modprobe: %s\n", + strerror_r(errno, error_buf, sizeof(error_buf))); } else if (WIFEXITED(status)) { status = WEXITSTATUS(status); if (status != 0) { |