Commit Graph

75 Commits

Author SHA1 Message Date
Peter Åstrand
c7c0be0b98 Avoid compile warning about /* in comment.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1620 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-14 14:05:32 +00:00
Peter Åstrand
b638882347 Include emails in copyright statements.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1615 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 11:13:04 +00:00
Peter Åstrand
27068f53f8 Updated the copyright notices for the things we have been working on.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1612 423420c4-83ab-492f-b58f-81f9feb106b5
2011-04-13 08:55:42 +00:00
Henrik Andersson
5a8b964cc0 Applied parts of patch #2894210 to complete the
disk_query_directory() implementation to support
vailable info classes.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1609 423420c4-83ab-492f-b58f-81f9feb106b5
2011-01-03 16:17:17 +00:00
Henrik Andersson
66c9092910 Fixed indentation.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1608 423420c4-83ab-492f-b58f-81f9feb106b5
2011-01-03 13:14:50 +00:00
Henrik Andersson
6920eadf7f Applied patch to support RD_STATUS_DIRECTORY_NOT_EMPTY when
recursive deletion of directory. This fixes bug 2906541 and
patch originates from 2909831.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1606 423420c4-83ab-492f-b58f-81f9feb106b5
2010-12-27 12:11:35 +00:00
Henrik Andersson
1be5dbdf81 Applied patch from tracker patched ID: 2812158 which implements
the FileFsFullSizeInformation which solves the read-only issues
with disk redirections on Windows 7 and Windows 2008R2.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1605 423420c4-83ab-492f-b58f-81f9feb106b5
2010-12-27 07:40:26 +00:00
Peter Åstrand
281d7c9f06 Changed license to GPLv3
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1534 423420c4-83ab-492f-b58f-81f9feb106b5
2010-01-12 08:31:06 +00:00
Peter Åstrand
058ee33be3 Clean up and document the return values. Trying to solve a number of issues:
* The current return values have been selected pretty much without any
thought. Basically, the value 1 is used for all different kinds of
errors, except for a corner case where the server doesn't send a
RDP_PDU_DEACTIVATE in combination with a few special "reasons", where
the value 2 is used instead.

* rdesktop will currently also return with 2 if the user is closing
the rdesktop window, the same error as many other fatal errors, which
is somewhat strange.

* The main principle of my patch is to utilize more of the available
256 return codes. We are currently only using 3 values out of
256. This is bad; rdesktop should expose more information to the
caller about error conditions if it can.

Besides using the standardized exit codes for generic errors such as
EX_USAGE for command line usage errors, I've also exposed the
"extended disconnect reasons" from RDP. This allows for, for example,
to be able to distinguish between a logoff and a disconnect.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1510 423420c4-83ab-492f-b58f-81f9feb106b5
2009-09-02 13:03:43 +00:00
Peter Åstrand
5c67800d15 Indent fixes; ran indent-all with modern indent (F11)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1509 423420c4-83ab-492f-b58f-81f9feb106b5
2009-08-27 08:35:48 +00:00
Jay Sorg
88855ddcbf update the copyright year
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1474 423420c4-83ab-492f-b58f-81f9feb106b5
2008-07-11 03:51:23 +00:00
Matt Chapman
3808350adb Fix from Paul Whitaker: It is not safe to assume that free space
available at the top of the tree is indicative of free space anywhere in
the tree, because you may wish to redirect a mount point hierarchy.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1434 423420c4-83ab-492f-b58f-81f9feb106b5
2008-02-16 00:15:43 +00:00
Matt Chapman
2e16fa661d Add some more warnings and sanity checks.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1425 423420c4-83ab-492f-b58f-81f9feb106b5
2008-01-05 05:43:02 +00:00
Peter Åstrand
75bd1939f8 Improve performance of (large) directory listings: Avoid
stat:ing each file many times.

The patch modifies rdesktop so that the g_notify_stamp is only set
when writing. Also, the stamp is not set before disk_create_notify(),
since this would mean that NotifyInfo would be called twice directly.

With this patch, the number of stat:s has dropped from 24 to 4, using
my tests.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1401 423420c4-83ab-492f-b58f-81f9feb106b5
2007-04-10 11:22:10 +00:00
Peter Åstrand
995f232b2b Cleanup: Using same variable name for all "struct stat" buffers, to
avoid confusion. (The variable name fstat also collides with the
function with the same name.)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1400 423420c4-83ab-492f-b58f-81f9feb106b5
2007-04-04 12:28:57 +00:00
Jay Sorg
6091381a81 prefix BOOL with RD_
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1371 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-08 04:47:06 +00:00
Jay Sorg
797df4fa02 copyright year update
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1364 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 05:39:39 +00:00
Jay Sorg
b670bdacfa RD_ prefix and win32 compatibility for core files
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1363 423420c4-83ab-492f-b58f-81f9feb106b5
2007-01-04 04:55:56 +00:00
Peter Åstrand
c2d3430c02 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1241 423420c4-83ab-492f-b58f-81f9feb106b5
2006-07-05 12:07:48 +00:00
Michael Gernoth
1ea625c969 fix some warnings
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1239 423420c4-83ab-492f-b58f-81f9feb106b5
2006-07-02 13:03:22 +00:00
Jay Sorg
cadfb489ba changed to compile with g++
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1015 423420c4-83ab-492f-b58f-81f9feb106b5
2005-09-22 00:16:31 +00:00
Peter Åstrand
e82a259ad2 Using new utility function str_startswith, to get rid of many sizeof:s and hardcoded constants.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1009 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-31 13:00:57 +00:00
Peter Åstrand
fbe5a9dca1 Indent fix
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@985 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-24 11:31:58 +00:00
Michael Gernoth
7ffe422a52 Slightly modified long filenames-patch from Alex Miller <asm at asm.kiev.ua>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@977 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-15 11:44:35 +00:00
Peter Åstrand
7c930b9082 dummy_statfs should be static.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@942 423420c4-83ab-492f-b58f-81f9feb106b5
2005-08-02 09:28:54 +00:00
Michael Gernoth
df4b862047 fix compilation on cygwin
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@901 423420c4-83ab-492f-b58f-81f9feb106b5
2005-05-08 17:03:04 +00:00
Peter Åstrand
f5bce2e0a9 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@878 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-03 18:08:05 +00:00
Michael Gernoth
71a1aaf38b fix dummy_statfs
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@874 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-02 17:49:56 +00:00
Michael Gernoth
f1254372b7 Use configure to determine stat(v)fs and setmntent
Tested on:
 * Debian GNU/Linux 3.1
 * Solaris 9/10
 * Mac OSX 10.3
 * HP/UX 10.20
 * OpenBSD 3.4


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@872 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-02 17:31:27 +00:00
Michael Gernoth
4cca15390d remove C++-style comments
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@864 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-15 11:25:50 +00:00
Michael Gernoth
dad0c173e4 fix compiler warnings
remove unused get_parallel_data


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@831 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-08 01:01:47 +00:00
Peter Åstrand
136341da2a Fixed indentation
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@826 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-03 08:48:24 +00:00
Erik Forsberg
93892786ab Disk unit names seem to be truncated at seven characters on the WTS,
and I can't see any field allowing for longer names. This is not very
surprising, since native clients export drive names ("A", "H" etc.).

Telling the user that the name is truncated at seven, not eight,
characters.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@817 423420c4-83ab-492f-b58f-81f9feb106b5
2005-02-21 12:39:34 +00:00
Jeroen Meijer
f0bc70c24e fix compilation on cygwin
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@811 423420c4-83ab-492f-b58f-81f9feb106b5
2005-02-14 00:34:23 +00:00
Michael Gernoth
bc994e9a9b OSF1 fixes from [ 938867 ] Misc porting patches
by Marc W. Mengel


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@806 423420c4-83ab-492f-b58f-81f9feb106b5
2004-12-23 20:43:47 +00:00
Michael Gernoth
53eabea36f Big serial- and disk-redirection update from
Andreas Flick <Andreas.Flick@unicon-ka.de>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@794 423420c4-83ab-492f-b58f-81f9feb106b5
2004-11-03 13:56:52 +00:00
Peter Åstrand
9af3418b70 Support for file systems that cannot handle O_EXCL.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@789 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-28 07:46:39 +00:00
Peter Åstrand
43982a43ce disk_create: When filename is zero bytes long, we mustn't reference
filename[strlen(filename)-1].


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@786 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-21 08:28:03 +00:00
Peter Åstrand
7bc64c96f1 Removed unused variables.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@785 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-21 08:13:33 +00:00
Peter Åstrand
a4fde17332 Implemented fix for the problem with ftruncate on FAT fs, which
doesn't support growing files. Should solve problems with MS Office
and FAT disks.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@784 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-21 08:10:04 +00:00
Michael Gernoth
09291b13c7 Add support for Mac OSX from Steven Palm <n9yty@n9yty.com>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@782 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-15 18:02:45 +00:00
Jay Sorg
c0651b51a1 change HANDLE to NTHANDLE to avoid conflics
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@775 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-02 01:30:33 +00:00
Michael Gernoth
942ba6ccb6 fix solaris compile...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@758 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-25 15:42:42 +00:00
Michael Gernoth
0df51ec33e add HAVE_DECL_DIRFD for FreeBSD
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@757 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-25 09:48:11 +00:00
Peter Åstrand
60704a5c00 Disk redirection actually uses share names; not drive letters.
Make sure we truncate share names longer than 8 chars.
Documentation updated.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@746 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-09 13:50:41 +00:00
Michael Gernoth
c4a834b9c6 SGI support from Jeremy Meng <voidfoo@cwazy.co.uk>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@744 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-09 11:40:41 +00:00
Michael Gernoth
c56364c6e4 use dirfd-autoconf test
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@741 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-06 09:50:34 +00:00
Peter Åstrand
fbd632d425 Bugfix: When a broken symlink was found in a directory, the
directory list operation was aborted. This lead to empty directories,
or directories with too few entries.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@697 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-11 13:52:22 +00:00
Peter Åstrand
70653e3d71 Using constant FileBothDirectoryInformation instead of
hardcoded value 3. Added FIXME for other return types.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@695 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-11 12:46:39 +00:00
Peter Åstrand
eefe7d5f43 Added FIXME for ftruncate on FAT.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@689 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-06 08:17:14 +00:00