summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-03-17 13:26:36 +0000
committerOlivier Blin <oblin@mandriva.org>2005-03-17 13:26:36 +0000
commit31591e97e99f2c0d44827c86ccf2a5c5f6dae616 (patch)
tree093327a79d1bef89a47aabbe955cf2559bd90c11 /mdk-stage1
parent33cedf812368e928c9f15f5bc39f81e1d5ba3ece (diff)
downloaddrakx-backup-do-not-use-31591e97e99f2c0d44827c86ccf2a5c5f6dae616.tar
drakx-backup-do-not-use-31591e97e99f2c0d44827c86ccf2a5c5f6dae616.tar.gz
drakx-backup-do-not-use-31591e97e99f2c0d44827c86ccf2a5c5f6dae616.tar.bz2
drakx-backup-do-not-use-31591e97e99f2c0d44827c86ccf2a5c5f6dae616.tar.xz
drakx-backup-do-not-use-31591e97e99f2c0d44827c86ccf2a5c5f6dae616.zip
fix return code check
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/thirdparty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/thirdparty.c b/mdk-stage1/thirdparty.c
index 00c8c9db3..5bdab55ad 100644
--- a/mdk-stage1/thirdparty.c
+++ b/mdk-stage1/thirdparty.c
@@ -161,7 +161,7 @@ static enum return_type third_party_choose_device(char ** device)
static enum return_type thirdparty_mount_device(char * device)
{
log_message("third party: trying to mount device %s", device);
- if (try_mount(device, THIRDPARTY_MOUNT_LOCATION) == -1) {
+ if (!try_mount(device, THIRDPARTY_MOUNT_LOCATION)) {
stg1_error_message("I can't mount the selected device (%s).", device);
return RETURN_ERROR;
}