2012-09-20 14:58:39 |
Robie Basak |
description |
If ipmipower gets EOF on stdin, then it fails with no output and an exit status of 1.
Steps to reproduce:
1. Observe that this works: ipmipower -h <host ip> -u <username> -p <password> --stat
2. Observe that this fails: ipmipower -h <host ip> -u <username> -p <password> --stat </dev/null
Expected behaviour: ipmipower is a command line tool. If it needs no input on stdin normally, then it should work regardless of what stdin is connected to.
Actual behaviour: ipmipower fails when stdin is connected to /dev/null, such as when called from a well-behaved Unix daemon.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: freeipmi-tools 0.8.12-3ubuntu1
ProcVersionSignature: User Name 3.2.0-29.46-virtual 3.2.24
Uname: Linux 3.2.0-29-virtual x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Thu Sep 20 13:00:57 2012
ProcEnviron:
TERM=xterm
LC_COLLATE=C
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: freeipmi
UpgradeStatus: No upgrade log present (probably fresh install) |
If ipmipower gets EOF on stdin, then it fails with no output and an exit status of 1.
Steps to reproduce:
1. Observe that this works: ipmipower -h <host ip> -u <username> -p <password> --stat
2. Observe that this fails: ipmipower -h <host ip> -u <username> -p <password> --stat </dev/null
Expected behaviour: ipmipower is a command line tool. If it needs no input on stdin normally, then it should work regardless of what stdin is connected to.
Actual behaviour: ipmipower fails when stdin is connected to /dev/null, such as when called from a well-behaved Unix daemon.
Workaround:
echo workaround | ipmipower -h <host ip> -u <username> -p <password> --stat # this works regardless of what stdin is connected to
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: freeipmi-tools 0.8.12-3ubuntu1
ProcVersionSignature: User Name 3.2.0-29.46-virtual 3.2.24
Uname: Linux 3.2.0-29-virtual x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Thu Sep 20 13:00:57 2012
ProcEnviron:
TERM=xterm
LC_COLLATE=C
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: freeipmi
UpgradeStatus: No upgrade log present (probably fresh install) |
|