master - cleanup: remove superfluous slash in default cache dir path
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7409009a20d7c24ddb02f8f792fe4bbd6f2b3e97 Commit: 7409009a20d7c24ddb02f8f792fe4bbd6f2b3e97 Parent: ef1d910dee1157d157402c28680dfe34e06194af Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Mar 7 13:03:09 2014 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Mar 7 13:03:09 2014 +0100
cleanup: remove superfluous slash in default cache dir path
--- lib/config/config.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/config/config.c +1 -1
@@ -1607,7 +1607,7 @@ const char *get_default_devices_cache_dir_CFG(struct cmd_context *cmd, struct pr {static char buf[PATH_MAX ]; -if (dm_snprintf (buf,sizeof (buf),"%s/%s/" , cmd->system_dir,DEFAULT_CACHE_SUBDIR ) <0 ) { +if (dm_snprintf (buf,sizeof (buf),"%s/%s" , cmd->system_dir,DEFAULT_CACHE_SUBDIR ) <0 ) {log_error ("Persistent cache directory name too long." );return NULL ; }