From 176cf2d05efac78fea3d032d37ef8e28b6414ca6 Mon Sep 17 00:00:00 2001 From: Sasha MOREL Date: Tue, 3 Jul 2018 09:18:13 +0200 Subject: [PATCH] =?UTF-8?q?=C3=89dition=20de=20lien=20symboliques=20avec?= =?UTF-8?q?=20sudoedit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc/verify_nano_rw.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/verify_nano_rw.rc b/rc/verify_nano_rw.rc index d8f3912..d852cb5 100644 --- a/rc/verify_nano_rw.rc +++ b/rc/verify_nano_rw.rc @@ -4,7 +4,7 @@ nano () { command nano $* else echo "Unwritable file, openning through sudoedit" - VISUAL=nano command sudoedit $* + VISUAL=nano command sudoedit $(realpath $*) fi else if [ -d "`dirname \"$1\"`" ]; then @@ -28,7 +28,7 @@ vim () { command vim $* else echo "Unwritable file, openning through sudoedit" - VISUAL=vim command sudoedit $* + VISUAL=vim command sudoedit $(realpath $*) fi else if [ -d "`dirname \"$1\"`" ]; then