aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-10-14 15:25:28 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-10-15 02:10:36 +0200
commit672a8cd80ef2a8491901c50757f0f85464550ff4 (patch)
tree1a4cb256126f861b81803f6ff127d91d24194f59 /tap.c
parentf99e9a333835cc13b7cf4c459774f7d2a1151699 (diff)
downloadpasst-672a8cd80ef2a8491901c50757f0f85464550ff4.tar
passt-672a8cd80ef2a8491901c50757f0f85464550ff4.tar.gz
passt-672a8cd80ef2a8491901c50757f0f85464550ff4.tar.bz2
passt-672a8cd80ef2a8491901c50757f0f85464550ff4.tar.lz
passt-672a8cd80ef2a8491901c50757f0f85464550ff4.tar.xz
passt-672a8cd80ef2a8491901c50757f0f85464550ff4.tar.zst
passt-672a8cd80ef2a8491901c50757f0f85464550ff4.zip
pasta: More general way of starting spawned shell as a login shell
When invoked so as to spawn a shell, pasta checks explicitly for the shell being bash and if so, adds a "-l" option to make it a login shell. This is not ideal, since this is a bash specific option and requires pasta to know about specific shell variants. There's a general convention for starting a login shell, which is to prepend a "-" to argv[0]. Use this approach instead, so we don't need bash specific logic. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tap.c')
0 files changed, 0 insertions, 0 deletions