We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf6a05fd commitc742d1dCopy full SHA for c742d1d
contrib/pg_upgrade/option.c
@@ -276,6 +276,7 @@ or\n"), old_cluster.port, new_cluster.port, os_info.user);
276
*
277
* Checks a directory option.
278
*dirpath - the directory name supplied on the command line
279
+ *configpath - optional configuration directory
280
*envVarName - the name of an environment variable to get if dirpath is NULL
281
*cmdLineOption - the command line option corresponds to this directory (-o, -O, -n, -N)
282
*description - a description of this directory option
@@ -305,7 +306,8 @@ check_required_directory(char **dirpath, char **configpath,
305
306
}
307
308
/*
- * Trim off any trailing path separators
309
+ * Trim off any trailing path separators because we construct paths
310
+ * by appending to this path.
311
*/
312
#ifndefWIN32
313
if ((*dirpath)[strlen(*dirpath)-1]=='/')