Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37566355
en ru br
ALT Linux repos
S:3.1.21-alt2

Group :: Communications
RPM: smstools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: spelling.patch
Download


Author: Thorsten Alteholz <debian@alteholz.de>
Description: fix some spelling errors
Index: smstools/doc/configure.html
===================================================================
--- smstools.orig/doc/configure.html	2020-08-05 19:02:50.448596133 +0000
+++ smstools/doc/configure.html	2020-08-05 19:02:50.440596105 +0000
@@ -738,7 +738,7 @@
 <p>
 <i><b><a name="g_filename_preview">filename_preview</a> = number</b></i><br>
 <font size="1">Default value: <i>not in use</i>.</font><br>
-Available from version >= 3.1. Defines how many characters of message text is concatenated to the name of a messsage file.
+Available from version >= 3.1. Defines how many characters of message text is concatenated to the name of a message file.
 Characters used are a...z, A...Z, 0...9, - and period.
 All other characters are replaced with _'s.
 </p>
@@ -1610,7 +1610,7 @@
 <br>
 <i>+CMGD: (1-30)<br>
 OK<br></i>
-= is not supported, a modem does not give message numbers even if there is messsages available.
+= is not supported, a modem does not give message numbers even if there is messages available.
   </p>
   </td></tr>
   <tr><td bgcolor=yellow valign=top>&nbsp;3&nbsp;</td><td>CMGL is used to check messages. Message is deleted after it is read.</td></tr>
@@ -2126,7 +2126,7 @@
 Setting <i>ms_purge_read</i> defines if parts are read before they are deleted.
 If <i>internal_combine</i> setting is used, parts are stored to the concatenation storage.
 If missing part(s) are later received, there will be similar timeout before parts are purged.
-After this the messsage is complete and is stored to the incoming folder.
+After this the message is complete and is stored to the incoming folder.
 See also global settings <i>ic_purge_*</i>.
 </p>
 
@@ -2186,9 +2186,9 @@
 After version >= 3.1.16 special keyword <b>modemname</b> can be used, it's replaced with a name of modem.<br>
 You can test you eventhandler and some other things without actually receiving a message from the modem/phone.
 This is especially important when it's not possible to receive the same message again because the sender cannot be reached.<br>
-You may have the original PDU string stored to the incoming messsage file, or you may see it in log file (depending of the loglevel).
+You may have the original PDU string stored to the incoming message file, or you may see it in log file (depending of the loglevel).
 This PDU string can be stored to the <i>pdu_from_file</i> named file, and when this file exists the smsd will read the PDU from there.
-Rest processing will be done similarry than with normally received messsages and you can then debug possible problems
+Rest processing will be done similarry than with normally received messages and you can then debug possible problems
 and see when they are fixed.<br>
 This file can contain empty lines and comment lines starting with # character.<br>
 Actual data can be stored as one line containing the PDU string, or two lines containing (first) the modem answer
@@ -2593,7 +2593,7 @@
 You can test your eventhandler and whole system around the smsd without sending any messages to the GSM network.
 All other functionality is working as usual, so this is some kind of "mute" to the modem.
 However the modem should be connected and working.
-This does not have an effect to the incoming messsages.
+This does not have an effect to the incoming messages.
 </p>
 
 <p>
Index: smstools/doc/history3.html
===================================================================
--- smstools.orig/doc/history3.html	2020-08-05 19:02:50.448596133 +0000
+++ smstools/doc/history3.html	2020-08-05 19:02:50.440596105 +0000
@@ -2223,7 +2223,7 @@
       <font size="1">Default value: 0.</font><br>
       <i><b>adminmessage_count_clear = number</b></i><br>
       <font size="1">Default value: 0.</font><br>
-      With these settings sending of administrative messsages can be limited.
+      With these settings sending of administrative messages can be limited.
       <i>adminmessage_limit</i>, defines a maximum number of messages to be sent.
       <i>adminmessage_count_clear</i> defines a period to automatically clear the message counter.
       This value is number of minutes.
@@ -2286,7 +2286,7 @@
       Setting <i>ms_purge_read</i> defines if parts are read before they are deleted.
       If <i>internal_combine</i> setting is used, parts are stored to the concatenation storage.
       If missing part(s) are later received, there will be similar timeout before parts are purged.
-      After this the messsage is complete and is stored to the incoming folder.
+      After this the message is complete and is stored to the incoming folder.
   </p></li>
   <li><p>
       New setting for a modem: <i><b>read_timeout = number</b></i>.<br>
@@ -2810,7 +2810,7 @@
   </p></li>
 
   <li><p>New global setting: <i><b>filename_preview = number</b></i>. Defines how many characters of message text is concatenated
-      to the name of messsage file. Currently works with incoming message files. (3.1beta).
+      to the name of message file. Currently works with incoming message files. (3.1beta).
   </p></li>
 
 </ol>
@@ -2921,7 +2921,7 @@
   <li><p>Modem is blocked only if sending has failed because of a modem related reason. (3.1beta).
   </p></li>
 
-  <li><p>"SMS sent" log information includes a message id and part information (while sending multipart messsages). (3.1beta).
+  <li><p>"SMS sent" log information includes a message id and part information (while sending multipart messages). (3.1beta).
   </p></li>
 
   <li><p>Status report log information includes a message id and status value. (3.1beta).
@@ -2933,7 +2933,7 @@
 <p>
 Bug fixes:
 <ol start="43">
-  <li><p>If both received and sent PDU's were stored to the messsage files, some sent PDU's were lost if
+  <li><p>If both received and sent PDU's were stored to the message files, some sent PDU's were lost if
       a message was received while the smsd was sending a multipart message.
       This is because the same buffer was used to store PDU's and receiving side cleaned it.
       Receiving and sending side now uses their own buffer to store PDU's.
Index: smstools/src/extras.c
===================================================================
--- smstools.orig/src/extras.c	2020-08-05 19:02:50.448596133 +0000
+++ smstools/src/extras.c	2020-08-05 19:02:50.440596105 +0000
@@ -816,7 +816,7 @@
         else
         {
           // 3.1.5: This error is repeated:
-          snprintf(reason, sizeof(reason), "%s", "Dont know why. Check the file and directory permissions.");
+          snprintf(reason, sizeof(reason), "%s", "Don't know why. Check the file and directory permissions.");
           writelogfile0(LOG_ERR, 0, tb_sprintf("Cannot handle %s: %s", tmpname, reason));
           alarm_handler0(LOG_ERR, tb);
         }
Index: smstools/src/smsd_cfg.h
===================================================================
--- smstools.orig/src/smsd_cfg.h	2020-08-05 19:02:50.448596133 +0000
+++ smstools/src/smsd_cfg.h	2020-08-05 19:45:55.000000000 +0000
@@ -94,7 +94,7 @@
 #define CM_CMGL 3
 #define CM_S_CMGL "CMGL is used."
 #define CM_CMGL_DEL_LAST 4
-#define CM_S_CMGL_DEL_LAST "CMGL is used and messages are deleted after all messsages are read."
+#define CM_S_CMGL_DEL_LAST "CMGL is used and messages are deleted after all messages are read."
 #define CM_CMGL_CHECK 31
 #define CM_S_CMGL_CHECK "CMGL is used and messages are taken from the list."
 #define CM_CMGL_DEL_LAST_CHECK 41
Index: smstools/scripts/sms3
===================================================================
--- smstools.orig/scripts/sms3	2020-08-05 19:02:50.448596133 +0000
+++ smstools/scripts/sms3	2020-08-05 19:02:50.440596105 +0000
@@ -112,7 +112,7 @@
 	          echo ""
 	          dots=0
 	        fi
-	        echo "Timeout occured, killing $NAME hardly."
+	        echo "Timeout occurred, killing $NAME hardly."
 	        kill -9 `ps $PSOPT | grep $NAME | grep -v grep | awk '{print $1}'` >/dev/null 2>&1
 	        [ -f $PIDFILE ] && rm $PIDFILE
 	        seconds=0
Index: smstools/src/modeminit.c
===================================================================
--- smstools.orig/src/modeminit.c	2020-08-05 19:02:50.448596133 +0000
+++ smstools/src/modeminit.c	2020-08-05 19:46:24.005736988 +0000
@@ -182,7 +182,7 @@
   {38,	"Network out of order"},
   {41,	"Temporary failure"},
   {42,	"Congestion"},
-  {47,	"Recources unavailable, unspecified"},
+  {47,	"Resources unavailable, unspecified"},
   {50,	"Requested facility not subscribed"},
   {69,	"Requested facility not implemented"},
   {81,	"Invalid short message transfer reference value"},
@@ -2270,7 +2270,7 @@
     writelogfile(LOG_ERR, 0, "Couldn't resolve name '%s': %s.", hostname,
       (h_errno == HOST_NOT_FOUND) ? "Host not found" :
       ((h_errno == NO_ADDRESS) || (h_errno == NO_DATA)) ? "No data available" :
-      (h_errno == NO_RECOVERY) ? "A non-recoverable name server error occured" : (h_errno == TRY_AGAIN) ? "A temporary error occured." : "An unknown error occured");
+      (h_errno == NO_RECOVERY) ? "A non-recoverable name server error occurred" : (h_errno == TRY_AGAIN) ? "A temporary error occurred." : "An unknown error occurred");
 
   memcpy(&(sa.sin_addr), he->h_addr, he->h_length);
 
Index: smstools/src/pdu.c
===================================================================
--- smstools.orig/src/pdu.c	2020-07-27 19:00:41.612207583 +0000
+++ smstools/src/pdu.c	2020-08-05 19:46:50.573829910 +0000
@@ -997,7 +997,7 @@
       case 1: p = "international"; break;
       case 2: p = "national"; break;
       case 3: p = "network specific"; break;
-      case 4: p = "subsciber"; break;
+      case 4: p = "subscriber"; break;
       case 5: p = "alphanumeric"; break;
       case 6: p = "abbreviated"; break;
       //case 7: p = "reserved"; break;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin