summaryrefslogtreecommitdiff
path: root/mysys/mf_pack.c
diff options
context:
space:
mode:
authorKent Boortz <kent.boortz@oracle.com>2011-07-04 01:25:49 +0200
committerKent Boortz <kent.boortz@oracle.com>2011-07-04 01:25:49 +0200
commit0f03af653cd9891dc6b8d855d7ebffc27b1db288 (patch)
treeaae7686092aab07db57ff0fe0150741ffbc9689d /mysys/mf_pack.c
parent9da00ebec99cd8963b63d011d6dd8111cbf9217e (diff)
parentbc9f870fb12d4aedc6239ec485dee6ebc23d9b94 (diff)
downloadmariadb-git-0f03af653cd9891dc6b8d855d7ebffc27b1db288.tar.gz
Updated/added copyright headers
Diffstat (limited to 'mysys/mf_pack.c')
-rw-r--r--mysys/mf_pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/mf_pack.c b/mysys/mf_pack.c
index 292cd8c0454..18c9a38f0db 100644
--- a/mysys/mf_pack.c
+++ b/mysys/mf_pack.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -193,7 +193,7 @@ size_t cleanup_dirname(register char *to, const char *from)
while (pos >= start && *pos != FN_LIBCHAR) /* remove prev dir */
pos--;
if (pos[1] == FN_HOMELIB ||
- (pos > start && memcmp(pos, parent, length) == 0))
+ (pos >= start && memcmp(pos, parent, length) == 0))
{ /* Don't remove ~user/ */
pos=strmov(end_parentdir+1,parent);
*pos=FN_LIBCHAR;