Package: obexftp
Version: 0.23-1
Severity: important

obexftp should return non-zero exit code if GET operation fails

Steps to reproduce the problem:
1. Normal operation:

$ obexftp -b 00:1E:3B:2C:FB:B3 -g telecom/pb.vcf
Browsing 00:1E:3B:2C:FB:B3 ...
Connecting..\done
Tried to connect for 77ms
Receiving "telecom/pb.vcf"... Sending ""...|done
-done
Disconnecting..\done

2. Check exit code. Should be zero

$ echo $?
0

3. Failure:
$ obexftp -b 00:1E:3B:2C:FB:B3 -g telecom/nonexistent ; echo $?
Browsing 00:1E:3B:2C:FB:B3 ...
Connecting..\done
Tried to connect for 76ms
Receiving "telecom/nonexistent"... Sending ""...|done
/failed: telecom/nonexistent
Disconnecting..-done

2. Check exit code. Should be non-zero, but zero returned

$ echo $?
0

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages obexftp depends on:
ii  libbfb0                       0.23-1     bfb protocol library
ii  libbluetooth3                 4.42-2     Library to use the BlueZ Linux Blu
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  libmulticobex1                0.23-1     multi-protocol cable OBEX library
ii  libobexftp0                   0.23-1     object exchange file transfer libr
ii  libopenobex1                  1.5-2      OBEX protocol library

obexftp recommends no packages.

obexftp suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to