[RFE] [PATCH] star vfs and xattr feature request

2005-12-06 Thread Jindrich Novy
Hello mc-devel,

Curtis Doty sent me a patch for star vfs support, where he says:
---
Here's a patch that attempts to add star filesystem support. Which is
fairly important IMHO now that Fedora is using selinux (or anything that
uses extended attributes).

Star also seems very forgiving; allowing the same view/extract command to work
across native archives or those compressed with various programs.

However, I couldn't get #utar to work so had to write the little #ustar script;
which is dog slow. So I'm hearby requesting a new feature: can the #utar extfs
be made to extract from starchives that contain selinux security descriptors?
---

references:
http://bugzilla.redhat.com/174918
http://www.nsa.gov/selinux/

Regards,
Jindrich 
-- 
Jindrich Novy [EMAIL PROTECTED], http://people.redhat.com/jnovy/
(o_   _o)
//\  The worst evil in the world is refusal to think. //\
V_/_ _\_V

--- mc-4.6.1a/lib/mc.ext.in.star	2005-12-03 19:27:17.0 -0800
+++ mc-4.6.1a/lib/mc.ext.in	2005-12-03 19:28:22.0 -0800
@@ -134,6 +134,11 @@
 	Open=%cd %p#utar
 	View=%view{ascii} tar tvvf %f
 
+# star - standard archive
+regex/\.(star|STAR)(|\.(bz2|gz))$
+	Open=%cd %p#ustar
+	View=%view{ascii} star tvf %f 2/dev/null
+
 # lha
 type/^LHa\ .*archive
 	Open=%cd %p#ulha
--- mc-4.6.1a/vfs/extfs/extfs.ini.star	2005-07-20 12:03:54.0 -0700
+++ mc-4.6.1a/vfs/extfs/extfs.ini	2005-12-03 19:29:35.0 -0800
@@ -54,3 +54,6 @@
 
 # ISO image
 iso9660
+
+# standard archive
+ustar
+++ mc-4.6.1a/vfs/extfs/ustar	2005-12-03 18:51:00.0 -0800
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+mcstarfs_list() {
+	star -tv -f=$1 2/dev/null |awk '{
+		size = $1
+		perms = substr($2,1,10)
+		split($3,own,/)
+		month = $4 ; day = $5 ; time = $6 ; year = $7
+		filename = substr($0, index($0,$8) )
+		printf %s 1 %s %s %i %s %2i %i %s %s\n,
+			perms, own[1], own[2], size, month, day, year, time, filename
+	}'
+}
+
+mcstarfs_copyout() {
+	#star -no-statistics -f=$1 -x -to-stdout $2 $3
+	# grumble mumble...can't have stderr because we need
+	# leading / and turning it off with -/ doesn't work
+	star -f=$1 -x -to-stdout $2 $3 2/dev/null
+}
+
+cmd=$1
+shift
+case $cmd in
+	list)		mcstarfs_list $@ ;;
+	copyout)	mcstarfs_copyout $@ ;;
+	*)		exit 1 ;;
+esac
+exit 0
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: Internal slang updated to 2.0.5

2005-12-06 Thread Nerijus Baliunas
On Sat, 12 Nov 2005 20:53:11 +0100 Leonard den Ottolander [EMAIL PROTECTED] 
wrote:

 As the idea to introduce a second version of an internal slang was not
 met with much enthusiasm and I don't think we should drop the internal
 slang (yet?) I've upgraded the internal version to 2.0.5.
 
 It's quite possible a few patches that were added to our internal
 version of slang our now missing but still required. If you run into
 such issues please report them here, so I can make an effort to get them
 included upstream. Or report them upstream yourself.

On AIX 5.1 with gcc there is a warning and error:

sldisply.c: In function `tt_sprintf':
sldisply.c:479: warning: format not a string literal, argument types not checked
sldisply.c: At top level:
sldisply.c:136: warning: `Linux_Console' defined but not used
sldisply.c:161: warning: `Is_Fg_BGR' defined but not used
sldisply.c:218: warning: `Num_Status_Line_Columns' defined but not used
sldisply.c:2082: warning: `get_color_info' defined but not used

slsmg.c: In function `init_tt_symbols':
slsmg.c:179: `SLtt_Has_Alt_Charset' undeclared (first use in this function)

Regards,
Nerijus
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel