int ut = urlPath(path, &lpath);
switch (ut) {
- case URL_IS_FTP:
- return ftpMkdir(path, mode);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef WITH_NEON
- return davMkdir(path, mode);
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
int ut = urlPath(path, &lpath);
switch (ut) {
- case URL_IS_FTP:
- return ftpChdir(path);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef NOTYET
- return davChdir(path);
-#else
- return -2;
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
int ut = urlPath(path, &lpath);
switch (ut) {
- case URL_IS_FTP:
- return ftpRmdir(path);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef WITH_NEON
- return davRmdir(path);
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
oldut = urlPath(oldpath, &oe);
switch (oldut) {
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef WITH_NEON
- return davRename(oldpath, newpath);
-#endif
- break;
- case URL_IS_FTP: /* XXX WRONG WRONG WRONG */
case URL_IS_PATH:
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
+ case URL_IS_FTP:
default:
return -2;
break;
newut = urlPath(newpath, &ne);
switch (newut) {
- case URL_IS_FTP:
-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) &&
- !xstrncasecmp(oldpath, newpath, (oe - oldpath))))
- return -2;
- return ftpRename(oldpath, newpath);
- break;
- case URL_IS_HTTPS: /* XXX WRONG WRONG WRONG */
- case URL_IS_HTTP: /* XXX WRONG WRONG WRONG */
case URL_IS_PATH:
oldpath = oe;
newpath = ne;
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
oldut = urlPath(oldpath, &oe);
switch (oldut) {
- case URL_IS_HTTPS: /* XXX WRONG WRONG WRONG */
- case URL_IS_HTTP: /* XXX WRONG WRONG WRONG */
- case URL_IS_FTP: /* XXX WRONG WRONG WRONG */
case URL_IS_PATH:
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
+ case URL_IS_FTP:
default:
return -2;
break;
newut = urlPath(newpath, &ne);
switch (newut) {
- case URL_IS_HTTPS: /* XXX WRONG WRONG WRONG */
- case URL_IS_HTTP: /* XXX WRONG WRONG WRONG */
- case URL_IS_FTP: /* XXX WRONG WRONG WRONG */
case URL_IS_PATH:
if (_rpmio_debug)
fprintf(stderr, "*** link old %*s new %*s\n", (int)(oe - oldpath), oldpath, (int)(ne - newpath), newpath);
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
+ case URL_IS_FTP:
default:
return -2;
break;
int ut = urlPath(path, &lpath);
switch (ut) {
- case URL_IS_FTP:
- return ftpUnlink(path);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef WITH_NEON
- return davUnlink(path);
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
if (_rpmio_debug)
fprintf(stderr, "*** Stat(%s,%p)\n", path, st);
switch (ut) {
- case URL_IS_FTP:
- return ftpStat(path, st);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef WITH_NEON
- return davStat(path, st);
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
if (_rpmio_debug)
fprintf(stderr, "*** Lstat(%s,%p)\n", path, st);
switch (ut) {
- case URL_IS_FTP:
- return ftpLstat(path, st);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef WITH_NEON
- return davLstat(path, st);
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
int ut = urlPath(path, &lpath);
switch (ut) {
- case URL_IS_FTP:
- return ftpReadlink(path, buf, bufsiz);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef NOTYET
- return davReadlink(path, buf, bufsiz);
-#else
- return -2;
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return -2;
break;
if (_rpmio_debug)
fprintf(stderr, "*** Access(%s,%d)\n", path, amode);
switch (ut) {
- case URL_IS_HTTPS: /* XXX WRONG WRONG WRONG */
- case URL_IS_HTTP: /* XXX WRONG WRONG WRONG */
- case URL_IS_FTP: /* XXX WRONG WRONG WRONG */
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
+ case URL_IS_FTP:
default:
return -2;
break;
if (_rpmio_debug)
fprintf(stderr, "*** Glob(%s,0x%x,%p,%p)\n", pattern, (unsigned)flags, (void *)errfunc, pglob);
switch (ut) {
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
- case URL_IS_FTP:
- pglob->gl_closedir = (void *) Closedir;
- pglob->gl_readdir = (void *) Readdir;
- pglob->gl_opendir = (void *) Opendir;
- pglob->gl_lstat = Lstat;
- pglob->gl_stat = Stat;
- flags |= GLOB_ALTDIRFUNC;
- flags &= ~GLOB_TILDE;
- break;
case URL_IS_PATH:
pattern = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
+ case URL_IS_FTP:
default:
return -2;
break;
if (_rpmio_debug)
fprintf(stderr, "*** Opendir(%s)\n", path);
switch (ut) {
- case URL_IS_FTP:
- return ftpOpendir(path);
- break;
- case URL_IS_HTTPS:
- case URL_IS_HTTP:
-#ifdef WITH_NEON
- return davOpendir(path);
-#endif
- break;
case URL_IS_PATH:
path = lpath;
case URL_IS_UNKNOWN:
break;
case URL_IS_DASH:
case URL_IS_HKP:
+ case URL_IS_FTP:
+ case URL_IS_HTTPS:
+ case URL_IS_HTTP:
default:
return NULL;
break;
fprintf(stderr, "*** Readdir(%p)\n", (void *)dir);
if (dir == NULL)
return NULL;
- if (ISAVMAGIC(dir))
- return avReaddir(dir);
-#ifdef WITH_NEON
- if (ISDAVMAGIC(dir))
- return davReaddir(dir);
-#endif
return readdir(dir);
}
fprintf(stderr, "*** Closedir(%p)\n", (void *)dir);
if (dir == NULL)
return 0;
- if (ISAVMAGIC(dir))
- return avClosedir(dir);
-#ifdef WITH_NEON
- if (ISDAVMAGIC(dir))
- return davClosedir(dir);
-#endif
return closedir(dir);
}