Package: screen
Version: 4.0.2-4.1
Severity: wishlist
Tags: patch

If /var/run is on tmpfs, /var/run/screen doesn't exist until root
runs screen the first time after a reboot. Normal users cannot use
it:

  wall:~> screen rsync -Pvr .debian/ piper:.debian
  Cannot make directory '/var/run/screen': Permission denied

It would be great if screen could recreate that directory on boot.
The following is a patch against /etc/init.d/screen-cleanup:

--- /tmp/screen-cleanup 2006-03-18 10:20:40.302409499 +0100
+++ ./screen-cleanup  2006-03-18 10:21:52.342416678 +0100
@@ -9,6 +9,7 @@
 
 case "$1" in
 start)
+    install -d -m 4775 -g utmp $SCREENDIR
     if find $SCREENDIR -type p | grep '^' >/dev/null; then
         echo -n 'Cleaning up stale screen sessions... '
         find $SCREENDIR -type p -print0 | xargs -0 rm -f



PS: grep -q '^' instead of grep '^' >/dev/null :)
    Or you could just do away with grep and use just shell:

      if [ -n "$(find $SCREENDIR -type p)" ]; then
        ...

-- 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP (sub)keys? Use subkeys.pgp.net as keyserver!
 
kermit: why are there so many songs about rainbows?
fozzy: that's part of what rainbows do.

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to