search for: max_path

Displaying 20 results from an estimated 58 matches for "max_path".

2007 Oct 04
0
Prototyping the Dir class
...,4] => dwFileAttributes # [4,8] => ftCreationTime # [12,8] => ftLastAccessTime # [20,8] => ftLastWriteTime # [28,4] => nFileSizeHigh # [32,4] => nFileSizeLow # [36,4] => dwReserved0 # [40,4] => dwReserved1 # [44,260/520] => cFileName[MAX_PATH] # [304,14] => cAlternateFileName[14] class MyDir include Windows::Error include Windows::File include Windows::Unicode include Windows::Directory include Windows::Process include Windows::Handle extend Windows::Error extend Windows::File extend Windows::U...
2013 Nov 18
7
RHSrvAny: Fix failure on Windows 2003
The newly rebuilt RHSrvAny worked on Windows XP, Windows 2003 R2, and Windows Vista+, but segfaulted on Windows 2003. After much investigation, the issue seems to have been with inconsistent use of Unicode. This series fixes compilation on Microsoft Visual C++ 2010 (the most recent version which runs on Windows 2003), fixes all compiler warnings, and enabled warnings during the build. The
2004 Jan 05
0
No subject
"Process a path as a null-terminated string. The maximum length for a path, including a trailing backslash, is given by MAX_PATH. The Unicode versions of several functions permit paths that exceed the MAX_PATH length if the path has the "\\?\" prefix. The "\\?\" tells the function to turn off path parsing. However, each component in the path cannot be more than MAX_PATH characters long. Use the &...
2004 Jan 05
0
No subject
"Process a path as a null-terminated string. The maximum length for a path, including a trailing backslash, is given by MAX_PATH. The Unicode versions of several functions permit paths that exceed the MAX_PATH length if the path has the "\\?\" prefix. The "\\?\" tells the function to turn off path parsing. However, each component in the path cannot be more than MAX_PATH characters long. Use the...
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...} + if (!StartServiceCtrlDispatcher( DispatchTable )) + { + SvcReportEvent(TEXT("StartServiceCtrlDispatcher")); + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; +} -VOID +VOID SvcInstall() { - SC_HANDLE schSCManager; - SC_HANDLE schService; - TCHAR szPath[MAX_PATH]; - - if ( - !GetModuleFileName( - NULL, - szPath, - MAX_PATH - ) - ) { - printf("Cannot install service (%d)\n", (int) GetLastError()); - return; - } - - schSCManager = OpenSCManager( - NULL, - NULL, - SC_MANAGER_ALL_ACCESS - ); - + SC_HANDLE schSCManage...
1998 Oct 14
0
The poisoned NUL byte
...t;, strlen(result)); } Glibc uses a different realpath implementation which does not have this bug. --- libc-5.4.38/libc/bsd/realpath.c.orig Sat Oct 3 00:42:48 1998 +++ libc-5.4.38/libc/bsd/realpath.c Sat Oct 3 00:43:09 1998 @@ -76,7 +76,7 @@ } strcpy(copy_path, path); path = copy_path; - max_path = copy_path + PATH_MAX - 2; + max_path = resolved_path + PATH_MAX - 2; /* If it''s a relative pathname use getwd for starters. */ if (*path != ''/'') { /* Ohoo... */ @@ -122,7 +122,7 @@ } /* Safely copy the next pathname component. */ while (*path != '...
2009 Jan 27
2
Package (PR#13475)
Full_Name: Partho Bhowmick Version: 2.8.1 OS: Windows XP Submission from: (NULL) (199.43.48.131) While trying to install package sn (I have tried multiple mirrors), I get the following message trying URL 'http://www.revolution-computing.com/cran/bin/windows/contrib/2.8/sn_0.4-10.zip' Content type 'application/zip' length 320643 bytes (313 Kb) opened URL downloaded 313 Kb
2019 Jul 24
1
Writing files with long paths on Windows fails even after enabling long paths
Hello all, We now can have long file paths on Windows by setting the LongPathsEnabled key to 1 at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem in the Registry Editor. I can successfully rename files to have long paths in File Explorer. R still isn't able to take advantage of the change, however: write(1, paste0(paste(sample(letters, 265, TRUE), collapse = ''),
2003 May 05
1
R-1.7.0: Rproxy.dll loadlibrary/freelibrary error (PR#2914)
...ilure even if R_HOME is set, // check PATH if everything else fails. trace failures! int loadDll() { static char lTraceBuffer[TRACEBUFSIZE]; // get entry-point if (getenv ("R_HOME")) { // BDR OutputDebugString("from env:"); char DLLlocation[MAX_PATH]; strcpy(DLLlocation, getenv("R_HOME")); strcat(DLLlocation, "\\bin\\"); strcat(DLLlocation, RDLL); OutputDebugString(DLLlocation); m_ProxyModule = LoadLibraryEx (DLLlocation, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); // trace failure! if (m_ProxyM...
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...} + if (!StartServiceCtrlDispatcher( DispatchTable )) + { + SvcReportEvent(TEXT("StartServiceCtrlDispatcher")); + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; +} -VOID +VOID SvcInstall() { - SC_HANDLE schSCManager; - SC_HANDLE schService; - TCHAR szPath[MAX_PATH]; - - if ( - !GetModuleFileName( - NULL, - szPath, - MAX_PATH - ) - ) { - printf("Cannot install service (%d)\n", (int) GetLastError()); - return; - } - - schSCManager = OpenSCManager( - NULL, - NULL, - SC_MANAGER_ALL_ACCESS - ); - + SC_HANDLE schSCManage...
2003 Jul 16
2
Fatal error in SJava.
Dear r-helpers, I have been trying to invoke R from Java in a Windows 2000 computer (unfortunately). All my environment variables seem to be properly set, everything seems to be in order, but I obtaining a Fatal error: unable to open the base package error window. Also, the output of the invoker is Loading RInterpreter library R_HOME: R_HOME=C:/Programas/R RVersion: R_VERSION=1.6.1 whereas
2023 Aug 11
3
R-4.3 version list.files function could not work correctly in chinese
???? ????R-4.3???????????R??????list.files??????????????????????BUG???????????????????????????? r4.3????dir????????????????? - COS??? | ?????? | ?????????????? (cosx.org)<https://d.cosx.org/d/424356-r43ban-ben-zhong-dirhan-shu-huo-qu-bu-liao-quan-bu-wen-jian/11> ??????????????????????? [[alternative HTML version deleted]]
2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
...39;'#{pattern}''" regex = Regexp.new(pattern) fdata = 0.chr * 320 # 580 if wide array = [] hfind = FindFirstFile(dirname, fdata) if hfind == INVALID_HANDLE_VALUE raise ArgumentError, get_last_error end file = fdata[44, MAX_PATH].unpack("Z*")[0] array << file if regex.match(file) while FindNextFile(hfind, fdata) file = fdata[44, MAX_PATH].unpack("Z*")[0] array << file if regex.match(file) end error = GetLastError() FindClose(hfind)...
2011 Aug 06
0
specifying 'root' for mboot.c32/syslinux
...w, as it seems doubtful any overriding commands are taken into account). [ http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/inifile/ini_init.c?view=markup ] #include <freeldr.h> 21 22 static LONG IniOpenIniFile(ULONG* FileId) 23 { 24 CHAR FreeldrPath[MAX_PATH]; 25 LONG ret; 26 27 // 28 // Create full freeldr.ini path 29 // 30 MachDiskGetBootPath(FreeldrPath, sizeof(FreeldrPath)); 31 strcat(FreeldrPath, "\\freeldr.ini"); 32 33 // Try to open freeldr.ini 34 ret = ArcOpen(FreeldrPath, OpenRe...
2008 Jul 30
4
launch linux script from windows application
...r to do that i wrote a bash script that works ok when I launch it through the command line, but when I launch it inside my windows app doesn't work. In order to launch it from my windows application I use the _spawnlp function. The return status is -1. There is the code: Code: char str_aux[MAX_PATH+1]; int result = _spawnlp(_P_NOWAIT, "/home/dims/strjava","/home/dims/strjava", str_aux, NULL ); In str_aux I send the parameters that the linux script needs. The script strjava is 'chmod a+x'. In order to find out if the script is launched, the first thing that it d...
2020 Sep 03
2
Rgui never processes ~/.Renviron
...reported as "" (empty), whereas with R or Rscript, it is reported as "123". TROUBLESHOOTING: >From code inspection (<https://github.com/wch/r-source/blob/1658c8491e9cdc6d2fe61603ed23ae56232b6727/src/main/Renviron.c#L298-L301>): #ifdef Win32 { char buf[1024]; /* MAX_PATH is less than this */ /* R_USER is not necessarily set yet, so we have to work harder */ s = getenv("R_USER"); if(!s) s = getenv("HOME"); if(!s) return; snprintf(buf, 1024, "%s/.Renviron", s); s = buf; } #endif I think it happens because neith...
2012 Feb 15
3
name too long problem?
In the latest 3.1 I get this in our backup: filename overflows max-path len by 1: <path> filename overflows max-path len by 1: <path> filename overflows max-path len by 9: <path> filename overflows max-path len by 7: <path> filename overflows max-path len by 4: <path> filename overflows max-path len by 5: <path> filename overflows max-path len by 6:
2008 Apr 30
8
Playing with NtQueryInformationFile
Hi all, I''m trying to get the allocation size of a file via a file handle (rather than its name). The example below works for FileNameInformation but I can''t get it to work as expected for FileStandardInformation. Here''s some sample code: # query_test.rb require ''windows/handle'' require ''windows/error'' include Windows::Handle
2007 Sep 29
0
First Preview of Samba 3.2.0 Available for Download
...mba bug reporting system at https://bugzilla.samba.org/. Major enhancements in Samba 3.2.0 include: File Serving: o Use of IDL generated parsing layer for several DCE/RPC interfaces. o Removal of the 1024 byte limit on pathnames and 256 byte limit on filename components to honor the MAX_PATH setting from the host OS. o Introduction of a registry based configuration system. o Improved CIFS Unix Extensions support. o Experimental support for file serving clusters. Winbind and Active Directory Integration: o Full support for Windows 2003 cross-forest, transitive trusts and...
2007 Sep 29
0
First Preview of Samba 3.2.0 Available for Download
...mba bug reporting system at https://bugzilla.samba.org/. Major enhancements in Samba 3.2.0 include: File Serving: o Use of IDL generated parsing layer for several DCE/RPC interfaces. o Removal of the 1024 byte limit on pathnames and 256 byte limit on filename components to honor the MAX_PATH setting from the host OS. o Introduction of a registry based configuration system. o Improved CIFS Unix Extensions support. o Experimental support for file serving clusters. Winbind and Active Directory Integration: o Full support for Windows 2003 cross-forest, transitive trusts and...