cathy zhou wrote:
>>>>> I suspect it is true because I also find that the following does
>>>>> not seem to work. It prints out "svccfg: unable to open file: No
>>>>> such file or directory":
>>>>>
>>>>> sed -e "s/enabled='true'/enabled='false'/" \
>>>>> /var/svc/manifest/network/dlmgmt.xml | \
>>>>> svccfg import -
>>>>>
>>>>> I am not quite sure how other services like datalink-init worked.
>>>> Is this chunk of code run before or after cpio dumps the bits on disk?
>>> After. I ran the command manually when
>>> /var/svc/manifet/network/dlmgmt.xml exists, but it output the same
>>> error message.
>> I see the problem. svccfg does not interpret "-" as stdin. The
>> documentation makes no such claim, and the code backs that up. If you
>> truss svccfg, you'll see that it tries to access a file called "-":
>>
>> # truss -f svccfg import -
>> ...
>> 5190: door_call(4, 0x08047B98) = 0
>> 5190: access("-", R_OK) Err#2 ENOENT
>> ...
>>
>> There are a significant number of pre-existing svccfg incantations
>> which are broken in this manner in bfu.sh. They should all be
>> replaced with "/dev/stdin".
> Ah, I see. Thanks. I will log a bug.
>
6613956 is filed.
I think the the place we pointed out is the only place incorrectly used this
syntax. "svccfg -f -" does seem to work correctly. So I am not sure 6613956
is a bug of the bfu script of the SMF command.
Thanks
- Cathy