smbclient: change request: file mode display

Ralf.Strandell at silja.com Ralf.Strandell at silja.com
Fri Dec 21 02:12:06 GMT 2001


Hi

We are using Smbclient (from Samba 2.2.2) to automatically monitor the sizes
and ages of files. The file names contain spaces of course. Some files have
attributes set. 

EXAMPLE:

  smb: Ö> dir *file*
    second file is called AR                    0  Fri Sep 15 12:37:54 2000
    file name with spaces             AR        0  Fri Sep 15 12:37:54 2000

THE PROBLEM:
	does the AR belong to the filename of "second file is called AR"
	or does it say that the attributes of "second file is called" are
"AR"?

	For me it's obvious, but for my scripts it isn't.


FIX:	Smbclient should use this notation: DAHR or -A-R for attributes.
	Could somebody please include this in a future version of Smbclient.
	It's important that the mode field is never empty (and does not
contain spaces)


===========================
Ralf Strandell
UNIX System Administrator
Silja Line, Finland
===========================




More information about the samba-technical mailing list