From 690360d98cf00ec25e80e196545be1a3ca9eb358 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" Date: Wed, 4 Apr 1984 00:44:08 +0000 Subject: who came up with the idea of cleaning up /dev/shm ? --- media-video/ffcat/files/ffcat | 2 +- sys-fs/dmc/files/dmc | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/media-video/ffcat/files/ffcat b/media-video/ffcat/files/ffcat index 972058f..caf40cc 100755 --- a/media-video/ffcat/files/ffcat +++ b/media-video/ffcat/files/ffcat @@ -63,7 +63,7 @@ X close L; die "Cannot run ffmpeg: $!" unless $pid = open3($W,$F,$F, - $has_ffmpeg, "-f", 'concat', "-i", $list, @copy, '-y', $output); + $has_ffmpeg, '-f', 'concat', '-safe', '0', '-i', $list, @copy, '-y', $output); } elsif ($has_mp4box) { my @args = (); for ( @ARGV ) { diff --git a/sys-fs/dmc/files/dmc b/sys-fs/dmc/files/dmc index 2a2febc..e3d03d8 100755 --- a/sys-fs/dmc/files/dmc +++ b/sys-fs/dmc/files/dmc @@ -111,8 +111,14 @@ X # /media is a good idea because the desktop environments will show # device icons for it and make it easy to use for GUI users. # unfortunately it stops the automounter from doing its job. why? - if ( -w "/dev/shm" ) { - $media = "/dev/shm"; + # + # /dev/shm seemed like a good idea to not litter /mnt with lots + # of mount points, but then some process decided to delete files + # from RAM without paying attention to file system boundaries. WTF + # (apparently the sandbox rules excempt shm from protection...) + # + if ( -w "/mnt" ) { + $media = "/mnt"; } else { $media = "/tmp"; } @@ -445,7 +451,7 @@ dmc - Command line UX frontend to dm-crypt's cryptsetup with support for multipl dmc -E # erase some or all passwords and keys may end in M for megabytes, G for gigabytes, T for terabytes... - If is omitted, /dev/shm/ is created instead. + If is omitted, /mnt/ is created instead. Combining action flags such as -c, -e and -d produces unuseful effects. Options: -- cgit v1.2.3