* In ServiceLoadFileContentsPosix() function, fd is always a positive
value when close() is called. The if check 'fd >= 0' is not really
required. Removed it.
* Fixed the function name in the "procedure comment block" for the
ParseShareName function.
/*********************************************************
- * Copyright (C) 2006-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2020 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
/*
*-----------------------------------------------------------------------------
*
- * IsValidShareName
+ * ParseShareName
*
* A helper function to parse the share name from "host:share" format into
* two separate strings, reporting errors if any.
/*********************************************************
- * Copyright (C) 2011-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2020 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
*contents = buf;
*fileSize = lstatBuf.st_size;
}
- if (fd >= 0) {
- close(fd);
- }
+
+ close(fd);
return err;
}