Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 219495
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Network Filesystems <net-fs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Davide Pesavento <davidepesa@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 219495 depends on: Show dependency tree
Bug 219495 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-27 15:49 0000
/etc/init.d/nfs:        type -t config 2>/dev/null 1>&2 && config /etc/exports
/etc/init.d/nfsmount:   type -t config 2>/dev/null 1>&2 && config /etc/fstab

`type -t` is a bashism, it doesn't work with dash nor zsh.
(http://www.opengroup.org/onlinepubs/7990989775/xcu/type.html)

Possible fixes are:
(1) type config 2>/dev/null 1>&2 && config /etc/fstab
(2) command -v config 2>/dev/null 1>&2 && config /etc/fstab
(3) [ "$(command -v "config")" = "config" ] && config /etc/fstab

------- Comment #1 From SpanKY 2008-05-04 09:51:59 0000 -------
the check is no longer needed, so it can just be dropped

http://sources.gentoo.org/net-fs/nfs-utils/files/nfs.initd?r1=1.12&r2=1.13
http://sources.gentoo.org/net-fs/nfs-utils/files/nfsmount.initd?r1=1.11&r2=1.12

------- Comment #2 From Jonathan Adamczewski 2008-05-05 03:46:58 0000 -------
You got the path wrong in nfs.initd - should be /etc/exports, not /etc/fstab.

------- Comment #3 From SpanKY 2008-05-05 04:36:17 0000 -------
just a copy & paste bug

http://sources.gentoo.org/net-fs/nfs-utils/files/nfs.initd?r1=1.13&r2=1.14

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug