summaryrefslogtreecommitdiff
diff options
authorAlberto Mardegan <alberto.mardegan@canonical.com>2022-05-25 10:33:34 +0300
committerAlberto Mardegan <alberto.mardegan@canonical.com>2022-05-25 10:33:34 +0300
commitb93cf4e531c7cadfd926dac9b5da79767d9e3fb8 (patch)
treee35b86659bf2c5d2a3622ea0d15adfe3f9acc21c
parentac20548ea7f7211758a4efd3464a6197f4108904 (diff)
cmd/snap-confine: replace leftovers of SC_LIB
-rw-r--r--cmd/snap-confine/mount-support-nvidia.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/snap-confine/mount-support-nvidia.c b/cmd/snap-confine/mount-support-nvidia.c
index 1f373bcd99..149ecb5dbe 100644
--- a/cmd/snap-confine/mount-support-nvidia.c
+++ b/cmd/snap-confine/mount-support-nvidia.c
@@ -591,9 +591,9 @@ void sc_mount_nvidia_driver(const char *rootfs_dir, const char *base_snap_name)
if (res != 0) {
die("cannot create " SC_EXTRA_LIB_DIR);
}
- if (res == 0 && (chown(SC_LIB, 0, 0) < 0)) {
+ if (res == 0 && (chown(SC_EXTRA_LIB_DIR, 0, 0) < 0)) {
// Adjust the ownership only if we created the directory.
- die("cannot change ownership of " SC_LIB);
+ die("cannot change ownership of " SC_EXTRA_LIB_DIR);
}
(void)sc_set_effective_identity(old);