diff options
author | jbj <devnull@localhost> | 2001-01-03 20:19:27 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-01-03 20:19:27 +0000 |
commit | 23fcf67cb51b54c4c1f23188ee355dbcbfba0a28 (patch) | |
tree | f8d1a8a5a523fd6f60760b2930f99f1f18349091 /rpmio/rpmrpc.c | |
parent | fd2c1d927f4a13e0507ab929a009decdbb90c01e (diff) | |
download | librpm-tizen-23fcf67cb51b54c4c1f23188ee355dbcbfba0a28.tar.gz librpm-tizen-23fcf67cb51b54c4c1f23188ee355dbcbfba0a28.tar.bz2 librpm-tizen-23fcf67cb51b54c4c1f23188ee355dbcbfba0a28.zip |
- fix: avoid locale issues with strcasecmp/strncasecmp (#23199).
- remove almost all explicit uses of stderr in rpmlib using rpmError().
CVS patchset: 4406
CVS date: 2001/01/03 20:19:27
Diffstat (limited to 'rpmio/rpmrpc.c')
-rw-r--r-- | rpmio/rpmrpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c index 34081f9cc..abc297530 100644 --- a/rpmio/rpmrpc.c +++ b/rpmio/rpmrpc.c @@ -143,7 +143,7 @@ int Rename (const char *oldpath, const char * newpath) { if (_rpmio_debug) fprintf(stderr, "*** rename old %*s new %*s\n", (int)(oe - oldpath), oldpath, (int)(ne - newpath), newpath); if (!(oldut == newut && oe && ne && (oe - oldpath) == (ne - newpath) && - !strncasecmp(oldpath, newpath, (oe - oldpath)))) + !xstrncasecmp(oldpath, newpath, (oe - oldpath)))) return -2; return ftpRename(oldpath, newpath); /*@notreached@*/ break; @@ -188,7 +188,7 @@ int Link (const char *oldpath, const char * newpath) { if (_rpmio_debug) fprintf(stderr, "*** link old %*s new %*s\n", (int)(oe - oldpath), oldpath, (int)(ne - newpath), newpath); if (!(oldut == newut && oe && ne && (oe - oldpath) == (ne - newpath) && - !strncasecmp(oldpath, newpath, (oe - oldpath)))) + !xstrncasecmp(oldpath, newpath, (oe - oldpath)))) return -2; oldpath = oe; newpath = ne; |