Bug#614360: dos2unix doesn't work on windows 2003/2008 shares with debian 6.x

2011-02-25 Thread Dirk Haller

Hi Erwin,

thank you for the latest version (5.2.1-beta3) of the tools.
The version works fine on my debian 5.0.7 system, but still fails with debian 
6.0.
I hope the additional debug informations are useful to track down the problem.
 

debian6.0:~# /root/bin/unix2dos /mnt/temp/win2k3-share/test2k3.txt
unix2dos: stat(path, buf) failed: Value too large for defined data type
unix2dos: Skipping /mnt/temp/win2k3-share/test2k3.txt, not a regular file.
debian6.0:~#
debian6.0:~# /root/bin/unix2dos -f /mnt/temp/win2k3-share/test2k3.txt
unix2dos: stat(ipInFN, StatBuf) failed: Value too large for defined data type
unix2dos: using /mnt/temp/win2k3-share/u2dtmpQ02Tro as temporary file
unix2dos: converting file /mnt/temp/win2k3-share/test2k3.txt to DOS format ...
unix2dos: problems converting file /mnt/temp/win2k3-share/test2k3.txt


debian5.0.7:~# /root/bin/unix2dos /mnt/temp/win2k3-share/test2k3.txt
unix2dos: /mnt/temp/win2k3-share/test2k3.txt MODE 0102767  (regular file)
unix2dos: /mnt/temp/win2k3-share/u2dtmpNcHhkq wird als temporäre Datei verwendet
unix2dos: Datei /mnt/temp/win2k3-share/test2k3.txt wird ins DOS-Format 
konvertiert ...


Regards 
Dirk


-Ursprüngliche Nachricht-
Von: Erwin Waterlander water...@xs4all.nl
Gesendet: 24.02.2011 14:56:10
An: Dirk Haller hal...@dirk-haller.net, 614...@bugs.debian.org
Betreff: Re: Bug#614360: dos2unix doesn't work on windows 2003/2008 shares with 
debian 6.x

Hi Dirk,

I expected that the mode was printed for all files. Somehow only the 
mode of the first file test2k.txt is printed.
Could you try again, running dos2unix only on the problematic files?

/root/bin/dos2unix /mnt/temp/win2k3-share/test2k3.txt
/root/bin/dos2unix /mnt/temp/win2k8-share/test2k8.txt


I replaced dos2unix-5.2.1-beta2.tar.gz with an update about one hour after my 
previous message to this bug report. If you downloaded this file shortly after 
my previous message, it could be you need to download it again. If 
dos2unix-5.2.1-beta2.tar.gz is 51880 bytes, you have the latest version.

Debian 5.0.7 used a different version of dos2unix. It could be that if you 
compile this version of dos2unix on Debian 5.0.7 you get the same problem 
there. It would be interesting to know.

Erwin


___
Empfehlen Sie WEB.DE DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.web.de



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#614360: dos2unix doesn't work on windows 2003/2008 shares with debian 6.x

2011-02-25 Thread Dirk Haller

Hi Erwin,

good news...changing the Makefile did the trick.
Both systems are 32bit, i am sorry but i don't have a debian 64bit system 
available at the moment. I can install a 64bit system next week and test it 
again, if that would be helpful?

debian6.0:~# /root/bin/dos2unix /mnt/temp/win2k3-share/test2k3.txt
dos2unix: /mnt/temp/win2k3-share/test2k3.txt MODE 0100755  (regular file)
dos2unix: using /mnt/temp/win2k3-share/d2utmpYcxpO7 as temporary file
dos2unix: converting file /mnt/temp/win2k3-share/test2k3.txt to Unix format ...
debian6.0:~# /root/bin/dos2unix /mnt/temp/win2k8-share/test2k8.txt
dos2unix: /mnt/temp/win2k8-share/test2k8.txt MODE 0100755  (regular file)
dos2unix: using /mnt/temp/win2k8-share/d2utmpSl7p5p as temporary file
dos2unix: converting file /mnt/temp/win2k8-share/test2k8.txt to Unix format ...


gcc version:

debian6.0:/usr/src/dos2unix-5.2.1-beta3# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' 
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.4 --enable-shared --enable-multiarch 
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls 
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc 
--enable-targets=all --with-arch-32=i586 --with-tune=generic 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)

debian5.0.7:~# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' 
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)


Thanks for your fast help and have a nice weekend!

Regards
Dirk

___
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#614360: dos2unix doesn't work on windows 2003/2008 shares with debian 6.x

2011-02-24 Thread Dirk Haller

Hi Erwin,

i tried the -f option, but it doesn't help. dos2unix doesn't complain about the 
filetype anymore, but it still fails to convert the text file.

debian6.0:~# dos2unix -f /mnt/temp/win2k3-share/test2k3.txt
dos2unix: converting file /mnt/temp/win2k3-share/test2k3.txt to UNIX format ...
dos2unix: problems converting file /mnt/temp/win2k3-share/test2k3.txt

And i had no luck with the latest version of the tools.

debian6.0:~# /root/bin/dos2unix -V
dos2unix 5.2.1-beta2 (2011-02-22)
With native language support.
VER_AUTHOR: Erwin Waterlander
LOCALEDIR: /root/share/locale

debian6.0:~# /root/bin/dos2unix /mnt/temp/win2k-share/test2k.txt 
/mnt/temp/win2k3-share/test2k3.txt /mnt/temp/win2k8-share/test2k8.txt
dos2unix: /mnt/temp/win2k-share/test2k.txt MODE 0100755  (regular file)
dos2unix: using /mnt/temp/win2k-share/d2utmpl0lCch as temporary file
dos2unix: converting file /mnt/temp/win2k-share/test2k.txt to Unix format ...
dos2unix: Skipping /mnt/temp/win2k3-share/test2k3.txt, not a regular file.
dos2unix: Skipping /mnt/temp/win2k8-share/test2k8.txt, not a regular file.

debian6.0:~# /root/bin/dos2unix -f /mnt/temp/win2k-share/test2k.txt 
/mnt/temp/win2k3-share/test2k3.txt /mnt/temp/win2k8-share/test2k8.txt
dos2unix: using /mnt/temp/win2k-share/d2utmpHlMfR2 as temporary file
dos2unix: converting file /mnt/temp/win2k-share/test2k.txt to Unix format ...
dos2unix: using /mnt/temp/win2k3-share/d2utmp6lbKdR as temporary file
dos2unix: converting file /mnt/temp/win2k3-share/test2k3.txt to Unix format ...
dos2unix: problems converting file /mnt/temp/win2k3-share/test2k3.txt


As soon as the files reside on a windows 2003/windows 2008 share the conversion 
fails. I use the tools in some shell scripts and i never had problems in the 
past until i updated two servers to debian 6.0. 
As a workaround i will modify my scripts to move the files to a local path 
temporarily, convert them and move them back to the windows file shares. 

Regards
Dirk


___
Empfehlen Sie WEB.DE DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.web.de



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#614360: dos2unix doesn't work on windows 2003/2008 shares with debian 6.x

2011-02-22 Thread Dirk Haller

Hi,

here's the stat output from both machines and some additional informations.
As already mentioned, everything else like editing files and creating 
directories and so on works on the w2k3 and w2k8 shares.
 

debian6.0:~# stat /mnt/temp/win2k-share/test2k.txt
  File: `/mnt/temp/win2k-share/test2k.txt'
  Size: 34  Blocks: 1  IO Block: 16384  regular file
Device: 1bh/27d Inode: 90520   Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (0/root)   Gid: (0/root)
Access: 2011-02-22 10:55:24.208128600 +0100
Modify: 2011-02-22 10:55:24.208128600 +0100
Change: 2011-02-22 10:55:24.208128600 +0100
debian6.0:~# stat /mnt/temp/win2k3-share/test2k3.txt
  File: `/mnt/temp/win2k3-share/test2k3.txt'
  Size: 35  Blocks: 1  IO Block: 16384  regular file
Device: 1ch/28d Inode: 562949953426164  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (0/root)   Gid: (0/root)
Access: 2011-02-22 00:33:46.613387500 +0100
Modify: 2011-02-21 11:49:50.664606100 +0100
Change: 2011-02-22 00:33:44.566564900 +0100
debian6.0:~# stat /mnt/temp/win2k8-share/test2k8.txt
  File: `/mnt/temp/win2k8-share/test2k8.txt'
  Size: 9   Blocks: 1  IO Block: 16384  regular file
Device: 1dh/29d Inode: 2533274790397647  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (0/root)   Gid: (0/root)
Access: 2011-02-21 12:31:06.503301500 +0100
Modify: 2011-02-21 12:35:05.662799000 +0100
Change: 2011-02-21 21:29:56.225082500 +0100

debian6.0:~# unix2dos /mnt/temp/win2k-share/test2k.txt
unix2dos: converting file /mnt/temp/win2k-share/test2k.txt to DOS format ...
debian6.0:~# unix2dos /mnt/temp/win2k3-share/test2k3.txt
unix2dos: Skipping /mnt/temp/win2k3-share/test2k3.txt, not a regular file.
debian6.0:~# unix2dos /mnt/temp/win2k8-share/test2k8.txt
unix2dos: Skipping /mnt/temp/win2k8-share/test2k8.txt, not a regular file.

debian6.0:~# unix2dos -V
unix2dos 5.0 (2010-02-16)
With native language support.
LOCALEDIR: /usr/share/locale

debian6.0:~# dpkg -l | grep tofrodos
ii  tofrodos   1.7.8.debian.1-2Converts DOS 
- Unix text files, alias tofromdos

debian6.0:~# cat /etc/fstab | grep mnt/temp
//oserver/win2k3-share /mnt/temp/win2k3-share   cifs
noauto,owner,rw,workgroup=DOMAINNAME,username=administrator,password=MYPASSWORD,user
0 0
//xserver/win2k8-share /mnt/temp/win2k8-share   cifs
noauto,owner,rw,workgroup=DOMAINNAME,username=administrator,password=MYPASSWORD,user
0 0
//fserver/win2k-share /mnt/temp/win2k-share cifs
noauto,owner,rw,workgroup=DOMAINNAME,username=administrator,password=MYPASSWORD,user
0 0


The debian 5.0.7 system is set to german language(de_DE@euro), reguläre Datei = 
regular file.

debian5.0.7:~# stat /mnt/temp/win2k-share/test2k.txt
  File: »/mnt/temp/win2k-share/test2k.txt«
  Size: 34  Blocks: 1  IO Block: 16384  reguläre Datei
Device: 11h/17d Inode: 345422045   Links: 1
Access: (2767/-rwxrwSrwx)  Uid: (0/root)   Gid: (0/root)
Access: 2011-02-22 10:47:11.292712200 +0100
Modify: 2011-02-22 10:47:11.292712200 +0100
Change: 2011-02-22 10:47:11.308336500 +0100
debian5.0.7:~# stat /mnt/temp/win2k3-share/test2k3.txt
  File: »/mnt/temp/win2k3-share/test2k3.txt«
  Size: 35  Blocks: 1  IO Block: 16384  reguläre Datei
Device: 12h/18d Inode: 345422124   Links: 1
Access: (2767/-rwxrwSrwx)  Uid: (0/root)   Gid: (0/root)
Access: 2011-02-22 00:33:46.613387500 +0100
Modify: 2011-02-21 11:49:50.664606100 +0100
Change: 2011-02-22 00:33:44.566564900 +0100
debian5.0.7:~# stat /mnt/temp/win2k8-share/test2k8.txt
  File: »/mnt/temp/win2k8-share/test2k8.txt«
  Size: 9   Blocks: 1  IO Block: 16384  reguläre Datei
Device: 13h/19d Inode: 345422157   Links: 1
Access: (2767/-rwxrwSrwx)  Uid: (0/root)   Gid: (0/root)
Access: 2011-02-21 12:31:06.503301500 +0100
Modify: 2011-02-21 12:35:05.662799000 +0100
Change: 2011-02-21 21:29:56.225082500 +0100

debian5.0.7:~# unix2dos /mnt/temp/win2k-share/test2k.txt
debian5.0.7:~# unix2dos /mnt/temp/win2k3-share/test2k3.txt
debian5.0.7:~# unix2dos /mnt/temp/win2k8-share/test2k8.txt

debian5.0.7:~# unix2dos -V
tofrodos Ver 1.7.8 Converts text files between DOS and Unix formats.
Copyright 1996-2008 by Christopher Heng. All rights reserved.

debian5.0.7:~# dpkg -l | grep tofrodos
ii  tofrodos  1.7.8.debian.1-1   Converts DOS 
- Unix text files, alias tofr

debian5.0.7:~# cat /etc/fstab | grep mnt/temp
//oserver/win2k3-share /mnt/temp/win2k3-share   cifs
noauto,owner,rw,workgroup=DOMAINNAME,username=administrator,password=MYPASSWORD,user
0 0
//fserver/win2k-share /mnt/temp/win2k-share cifs
noauto,owner,rw,workgroup=DOMAINNAME,username=administrator,password=MYPASSWORD,user
0 0
//xserver/win2k8-share /mnt/temp/win2k8-share   cifs
noauto,owner,rw,workgroup=DOMAINNAME,username=administrator,password=MYPASSWORD,user
   

Bug#614360: dos2unix doesn't work on windows 2003/2008 shares with debian 6.x

2011-02-21 Thread Dirk Haller

Subject: dos2unix doesn't work on windows 2003/2008 shares with debian 6.x
Package: dos2unix
Version: 5.0-2
Severity: normal

*** Please type your report below this line ***
Hello,

after a system update from debian 5.0.7 to 6.0, dos2unix and unix2dos doesn't 
work as expected on windows 2003 server and windows 2008 server file shares. 
Before updating the system everything was fine.
dos2unix/unix2dos does still work on windows 2000 server file shares.
This behaviour could be reproduced on two debian 6.0 systems and is and was not 
present on 5.0.7 systems.

Please have a look on the following output, there you can see the described 
behaviour.
I am not sure if it's really bug in dos2unix/unix2dos or a smb/cifs related 
problem, but i only have problems with dos2unix/unix2dos on windows 2003/2008 
file shares. Everything else (editing files etc.)  works as expected.
Perhaps dos2unix handles the files on the win2003/2008 shares like links?

debian 6.0:
debian6.0:/# dos2unix /mnt/temp/win2k3-share/test2k3.txt
dos2unix: Skipping /mnt/temp/win2k3-share/test2k3.txt, not a regular file.
debian6.0:/# dos2unix /mnt/temp/win2k-share/test2k.txt
dos2unix: converting file /mnt/temp/win2k-share/test2k.txt to UNIX format ...
debian6.0:/# dos2unix /mnt/temp/win2k8-share/test2k8.txt
dos2unix: Skipping /mnt/temp/win2k8-share/test2k8.txt, not a regular file.

debian 5.0.7
debian5.0.7:/mnt/temp# dos2unix /mnt/temp/win2k3-share/test2k3.txt
debian5.0.7:/mnt/temp# dos2unix /mnt/temp/win2k-share/test2k.txt
debian5.0.7:/mnt/temp# dos2unix /mnt/temp/win2k8-share/test2k8.txt

strace output: 

debian6.0:/# strace dos2unix /mnt/temp/win2k3-share/test2k3.txt
execve(/usr/bin/dos2unix, [dos2unix, 
/mnt/temp/win2k3-share/test2k3.t...], [/* 17 vars */]) = 0
brk(0)  = 0x9e48000
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb77ef000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=20493, ...}) = 0
mmap2(NULL, 20493, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb77e9000
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or directory)
open(/lib/i686/cmov/libc.so.6, O_RDONLY) = 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320m\1\0004\0\0\0..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1323460, ...}) = 0
mmap2(NULL, 1333608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xb76a3000
mmap2(0xb77e3000, 12288, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13f) = 0xb77e3000
mmap2(0xb77e6000, 10600, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb77e6000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb76a2000
set_thread_area({entry_number:-1 - 6, base_addr:0xb76a26c0, limit:1048575, 
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, 
useable:1}) = 0
mprotect(0xb77e3000, 8192, PROT_READ)   = 0
mprotect(0xb780d000, 4096, PROT_READ)   = 0
munmap(0xb77e9000, 20493)   = 0
brk(0)  = 0x9e48000
brk(0x9e69000)  = 0x9e69000
open(/usr/lib/locale/locale-archive, O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1527584, ...}) = 0
mmap2(NULL, 1527584, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb752d000
close(3)= 0
lstat64(/mnt/temp/win2k3-share/test2k3.txt, {st_mode=S_IFREG|0755, 
st_size=35, ...}) = 0
open(/usr/share/locale/locale.alias, O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xb77ee000
read(3, # Locale name alias data base.\n#..., 4096) = 2570
read(3, , 4096)   = 0
close(3)= 0
munmap(0xb77ee000, 4096)= 0
open(/usr/share/locale/en_US.UTF-8/LC_MESSAGES/dos2unix.mo, O_RDONLY) = -1 
ENOENT (No such file or directory)
open(/usr/share/locale/en_US.utf8/LC_MESSAGES/dos2unix.mo, O_RDONLY) = -1 
ENOENT (No such file or directory)
open(/usr/share/locale/en_US/LC_MESSAGES/dos2unix.mo, O_RDONLY) = -1 ENOENT 
(No such file or directory)
open(/usr/share/locale/en.UTF-8/LC_MESSAGES/dos2unix.mo, O_RDONLY) = -1 
ENOENT (No such file or directory)
open(/usr/share/locale/en.utf8/LC_MESSAGES/dos2unix.mo, O_RDONLY) = -1 ENOENT 
(No such file or directory)
open(/usr/share/locale/en/LC_MESSAGES/dos2unix.mo, O_RDONLY) = -1 ENOENT (No 
such file or directory)
write(2, dos2unix: Skipping /mnt/temp/win..., 75dos2unix: Skipping 
/mnt/temp/win2k3-share/test2k3.txt, not a regular file.
) = 75
exit_group(0)   = ?



-- System Information:
Debian Release: 6.0
 APT prefers oldstable
 APT policy: (500,