mirror of
https://github.com/fadden/nulib2.git
synced 2024-05-28 08:41:29 +00:00
Renamed SetFileDetails to GetFileDetails.
This commit is contained in:
parent
56a96dc7eb
commit
8b0b89b5d4
|
@ -432,7 +432,7 @@ ReplaceFssep(char* str, char oldc, char newc, char newSubst)
|
||||||
* and characteristics of the file.
|
* and characteristics of the file.
|
||||||
*/
|
*/
|
||||||
static NuError
|
static NuError
|
||||||
SetFileDetails(NulibState* pState, const char* pathname, struct stat* psb,
|
GetFileDetails(NulibState* pState, const char* pathname, struct stat* psb,
|
||||||
NuFileDetails* pDetails)
|
NuFileDetails* pDetails)
|
||||||
{
|
{
|
||||||
Boolean wasPreserved;
|
Boolean wasPreserved;
|
||||||
|
@ -807,7 +807,7 @@ UNIXAddFile(NulibState* pState, NuArchive* pArchive, const char* pathname)
|
||||||
*/
|
*/
|
||||||
DBUG(("+++ ADD '%s'\n", pathname));
|
DBUG(("+++ ADD '%s'\n", pathname));
|
||||||
|
|
||||||
err = SetFileDetails(pState, pathname, &sb, &details);
|
err = GetFileDetails(pState, pathname, &sb, &details);
|
||||||
if (err != kNuErrNone)
|
if (err != kNuErrNone)
|
||||||
goto bail;
|
goto bail;
|
||||||
|
|
||||||
|
@ -990,10 +990,9 @@ bail:
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add a file to the list we're adding to the archive.
|
* Add a file to the list we're adding to the archive. If it's a directory,
|
||||||
*
|
* and the recursive descent feature is enabled, call Win32AddDirectory to
|
||||||
* I haven't figured out the recursive tree traversal stuff yet, so for
|
* add the contents of the dir.
|
||||||
* now this ignores directories.
|
|
||||||
*
|
*
|
||||||
* Returns with an error if the file doesn't exist or isn't readable.
|
* Returns with an error if the file doesn't exist or isn't readable.
|
||||||
*/
|
*/
|
||||||
|
@ -1038,7 +1037,7 @@ Win32AddFile(NulibState* pState, NuArchive* pArchive, const char* pathname)
|
||||||
*/
|
*/
|
||||||
DBUG(("+++ ADD '%s'\n", pathname));
|
DBUG(("+++ ADD '%s'\n", pathname));
|
||||||
|
|
||||||
err = SetFileDetails(pState, pathname, &sb, &details);
|
err = GetFileDetails(pState, pathname, &sb, &details);
|
||||||
if (err != kNuErrNone)
|
if (err != kNuErrNone)
|
||||||
goto bail;
|
goto bail;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user