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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/10/07, Andre Majorel <aym-mpr@xxxxxxxxx> 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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux