Re: Bug ? rpm -qlp exits with status 0 on I/O error

"Jeff Johnson" <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
On 10/10/07, Andre Majorel <[email protected]> wrote:
> rpm -qlp $file silently exits with status 0 if there's an I/O
> error on $file. Is this deliberate ? In my opinion,
> { perror($file); exit (1); } would be a more useful behaviour.
>

Fixed:

$ rpm -qp glibc-2.6.90-12.i686.rpm ; echo $?
glibc-2.6.90-12.i686
0
$ dd if=/dev/zero of=glibc-2.6.90-12.i686.rpm count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000139087 s, 3.7 MB/s
$ rpm -qp glibc-2.6.90-12.i686.rpm ; echo $?
1
$ rpm --version
RPM version 5.0.DEVEL

73 de Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.