Package: mmdebstrap
Version: 0.6.0-1
Severity: normal

Hi,

when I set TMPDIR to a directory that has mode 0755, mmdebstrap will
fail:

```
$ ls -ld .
drwxr-xr-x 3 bdrung bdrung 80 Jan 22 12:43 .
$ TMPDIR=$(pwd) mmdebstrap buster buster.tar.xz
I: automatically chosen mode: unshare
I: chroot architecture amd64 is equal to the host's architecture
I: using /tmpfs/foo/mmdebstrap.wYxMFPcZHA as tempdir
Error in tempfile() using template /tmpfs/foo/XXXXXXXXXX: Could not
create temp file /tmpfs/foo/n9u_YuCT9W: Permission denied at
/usr/bin/mmdebstrap line 1178.
I: main() received signal PIPE: waiting for setup...
W: listening on child socket failed: E: received eof on socket

I: removing tempdir /tmpfs/foo/mmdebstrap.wYxMFPcZHA...
W: problem unlinking /tmpfs/foo/mmdebstrap.wYxMFPcZHA: cannot remove
directory: Permission denied
$ ls -ld /tmpfs/foo/mmdebstrap.wYxMFPcZHA
drwxr-xr-x 2 100000 100000 40 Jan 22 12:48
/tmpfs/foo/mmdebstrap.wYxMFPcZHA
```

Changing the mode of the directory to 1777 (similar to the mode of
/tmp), it will work.

-- 
Benjamin Drung

DevOps Engineer and Debian & Ubuntu Developer
Platform Integration (IONOS Cloud)

1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Germany
E-mail: benjamin.dr...@cloud.ionos.com | Web: www.ionos.de

Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498

Vorstand: Dr. Christian Böing, Hüseyin Dogan, Dr. Martin Endreß,
Hans-Henning Kettler, Matthias Steinberg, Achim Weiß
Aufsichtsratsvorsitzender: Markus Kadelke


Member of United Internet

Reply via email to