From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 28 07:49:31 2020 Received: (at 42036) by debbugs.gnu.org; 28 Jun 2020 11:49:31 +0000 Received: from localhost ([127.0.0.1]:45536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpVoR-0006qS-0h for submit@debbugs.gnu.org; Sun, 28 Jun 2020 07:49:31 -0400 Received: from tobias.gr ([80.241.217.52]:53164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpVoP-0006qJ-M5 for 42036@debbugs.gnu.org; Sun, 28 Jun 2020 07:49:30 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id a8e32cf5; Sun, 28 Jun 2020 11:49:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=B+Oi3n4t/rI726Fn9oIgpV 12ogOdvqU1U2+TE1BszVU=; b=OSWceAv5/XiWhmQP164p/y8Kgv+z8sJ/hjn+QE hGwMSMn+1qwyBSkjMxQuiRGkii1Y+U22U16av/wGxkacZp0486HzFekomA4gH5lF VuS/9FhuKTpwNZpVsaP2AZq8lDIx6mw+gRDkrHnd+mUTATeOApXEmYWvnIhiz3xS iFrjZj87EYxQRBlozwLeqciIlGdkr5L0KkIJVxuAtgXSuR7rQGx6SVB4KbWwAgh6 eyieVAGLnI2tSIkN4bAgm8x4K38zK2c1nBtMb6FS1HO86Xr95UcscrUBrK/Zb11P G8mplpv0ah15BPbMQffRhSYQpBVLGocsDn2XgsohRKVdo6PA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id c9880e88 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 28 Jun 2020 11:49:31 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Oleg Pykhalov Subject: Re: bug#42036: Failed to mount fuse sshfs References: <87pn9o19qu.fsf@gmail.com> <20200625102730.GA21908@E5400> <87bll7b9e1.fsf@nckx> <877dvujrha.fsf@gmail.com> In-reply-to: <877dvujrha.fsf@gmail.com> Date: Sun, 28 Jun 2020 13:49:26 +0200 Message-ID: <87r1tzquk9.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42036 Cc: Efraim Flashner , 42036@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Oleg Pykhalov =E5=86=99=E9=81=93=EF=BC=9A > Tobias Geerinckx-Rice writes: >> However, Oleg: are you sure it looks *only* in /bin? [=E2=80=A6] > Here is a =E2=80=98mount -t=E2=80=98 strace: > --8<---------------cut=20 > here---------------start------------->8--- > oleg@guixsd ~$ mount -t fuse -o rw,allow_other=20 > sshfs#oleg@workstation:/home/oleg /tmp/f > /gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh:=20 > sshfs: command not found > > execve("/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/b= in/sh",=20 > ["/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/sh"= ,=20 > "-c", "'sshfs' 'oleg@workstation:/home/oleg' '/tmp/f' '-o'=20 > 'rw,allow_other,dev,suid'"], 0x961430 /* 74 vars */) =3D 0 > ... > stat(".", {st_mode=3DS_IFDIR|0755, st_size=3D20480, ...}) =3D 0 > stat("/usr/local/bin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No=20 > such file or directory) > stat("/usr/local/sbin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No=20 > such file or directory) > stat("/usr/bin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such=20 > file or directory) > stat("/usr/sbin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such=20 > file or directory) > stat("/bin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such=20 > file or directory) > stat("/sbin/sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such=20 > file or directory) > stat(".", {st_mode=3DS_IFDIR|0755, st_size=3D20480, ...}) =3D 0 > stat("./sshfs", 0x7ffed0ac1c90) =3D -1 ENOENT (No such=20 > file or directory) > --8<---------------cut=20 > here---------------end--------------->8--- Thanks! This part comes from mount.fuse, right? mount calls mount.fuse with $PATH unset. mount.fuse calls=20 /bin/sh -c sshfs =E2=80=A6, which uses /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:. by default. Not very useful on Guix Systems. I'm considering the best place to fix this: util-linux (probably),=20 fuse (it would only affect mount.fuse, but maybe we want that kind=20 of control), or bash (almost certainly not). Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXviDxgAKCRANsP+IT1Vt ed8wAQCAh2DYh48K9/5svDD6vwyNUNf0NgXWwS3qUGU/uLT3VwEA8C7BgtX0524o XwfAB0vmfKRDvxPwnH6JD6DdskPsqQg= =pz4R -----END PGP SIGNATURE----- --=-=-=--