sshfs: add package
Fixes https://github.com/termux/termux-root-packages/issues/45.
This commit is contained in:
parent
c8844a33eb
commit
f17f955af5
|
@ -0,0 +1,8 @@
|
||||||
|
TERMUX_PKG_HOMEPAGE=https://github.com/libfuse/sshfs
|
||||||
|
TERMUX_PKG_DESCRIPTION="FUSE client based on the SSH File Transfer Protocol"
|
||||||
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||||
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
|
TERMUX_PKG_VERSION=3.7.2
|
||||||
|
TERMUX_PKG_SRCURL=https://github.com/libfuse/sshfs/archive/refs/tags/sshfs-${TERMUX_PKG_VERSION}.tar.gz
|
||||||
|
TERMUX_PKG_SHA256=8a9b0d980e9d34d0d18eacb9e1ca77fc499d1cf70b3674cc3e02f3eafad8ab14
|
||||||
|
TERMUX_PKG_DEPENDS="libfuse3, glib, openssh"
|
|
@ -0,0 +1,20 @@
|
||||||
|
--- ./sshfs.c~ 2021-06-08 10:52:08.000000000 +0200
|
||||||
|
+++ ./sshfs.c 2021-12-17 08:54:19.055115082 +0100
|
||||||
|
@@ -4026,7 +4026,7 @@
|
||||||
|
*idmap = g_hash_table_new(NULL, NULL);
|
||||||
|
*r_idmap = g_hash_table_new(NULL, NULL);
|
||||||
|
FILE *fp;
|
||||||
|
- char line[LINE_MAX];
|
||||||
|
+ char line[PATH_MAX];
|
||||||
|
unsigned int lineno = 0;
|
||||||
|
uid_t local_uid = getuid();
|
||||||
|
|
||||||
|
@@ -4052,7 +4052,7 @@
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
- while (fgets(line, LINE_MAX, fp) != NULL) {
|
||||||
|
+ while (fgets(line, PATH_MAX, fp) != NULL) {
|
||||||
|
lineno++;
|
||||||
|
uint32_t remote_id;
|
||||||
|
char *name;
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- ./sshfs.c~ 2021-12-17 08:55:33.246390858 +0100
|
||||||
|
+++ ./sshfs.c 2021-12-17 08:56:18.000481713 +0100
|
||||||
|
@@ -130,7 +130,7 @@
|
||||||
|
|
||||||
|
#define RENAME_TEMP_CHARS 8
|
||||||
|
|
||||||
|
-#define SFTP_SERVER_PATH "/usr/lib/sftp-server"
|
||||||
|
+#define SFTP_SERVER_PATH "@TERMUX_PREFIX@/lib/sftp-server"
|
||||||
|
|
||||||
|
/* Asynchronous readdir parameters */
|
||||||
|
#define READDIR_START 2
|
Loading…
Reference in New Issue