Package: dput-ng
Version: 1.44.1
Severity: serious
File: /usr/bin/dput
Justification: Silent data loss: you run dput and it seems to work, but nothing 
happened

Steps:

Run dput-ng with
   method                  = local
   incoming                = a mode 555 directory

Expected results:

Error message(s) on stderr and a nonzero exit status.

Actual results:

Reports of successful upload, a zero exit status,
but nothing has actually been copied.

I have verifed with strace that
  - dput-ng has swallowed the stderr from install(8)
  - install(8) exited nonzero
  - dput-ng ignored this

Transcript below.

I have a git branch in which I try to fix this.
I will make an MR on Salsa.

Ian.

zealot:bpd> cat ../dput.cf 
[test-dummy]
method                  = local
incoming                = 
/home/ian/things/Dgit/dgit/tests/tmp/push-retries/incoming
run_dinstall            = 0
zealot:bpd> ll ../incoming/
total 8
dr-xr-xr-x  2 ian ian 4096 Mar  6 17:04 ./
drwxrwxr-x 12 ian ian 4096 Mar  6 17:05 ../
zealot:bpd> dput --unchecked 
--config=/home/ian/things/Dgit/dgit/tests/tmp/push-retries/dput.cf test-dummy 
/home/ian/things/Dgit/dgit/tests/tmp/push-retries/bpd/example_1.0_source.changes
Uploading example using local to test-dummy (host: test-dummy; directory: 
/home/ian/things/Dgit/dgit/tests/tmp/push-retries/incoming)
running allowed-distribution: check whether a local profile permits uploads to 
the target distribution
running checksum: verify checksums before uploading
running suite-mismatch: check the target distribution for common errors
running gpg: check GnuPG signatures before the upload
Not checking GPG signature due to allow_unsigned_uploads being set.
Uploading example_1.0.dsc
Uploading example_1.0.tar.gz
Uploading example_1.0_source.changes
zealot:bpd> echo $?
0
zealot:bpd> ll ../incoming/
total 8
dr-xr-xr-x  2 ian ian 4096 Mar  6 17:04 ./
drwxrwxr-x 12 ian ian 4096 Mar  6 17:05 ../
zealot:bpd> 


-- System Information:
Debian Release: 13.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'proposed-updates-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.57+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages dput-ng depends on:
ii  python3       3.13.5-1
ii  python3-dput  1.44.1

dput-ng recommends no packages.

Versions of packages dput-ng suggests:
pn  dput-ng-doc       <none>
pn  python3-mastodon  <none>
pn  python3-tweepy    <none>
ii  rsync             3.4.1+ds1-5

-- no debconf information

Reply via email to